Skip to content

sd.c miso/mosi assert issue (typo?) #67

@HeatPhoenix

Description

@HeatPhoenix

Hi there!

Great work on the library, I've been trying to use it on my custom Pi Pico project, and at this line [here]:

} else if (spi_inst == spi1) {
        assert(mosi == 11 || mosi == 15 || mosi == 27);
        assert(miso == 8 || miso == 12 || mosi == 24 || mosi == 28);
        assert(sclk == 10 || sclk == 14 || sclk == 26);```

I believe there to be an error. On the second set of assert OR statements, I think the last two should also miso, right? Since you're asserting that the miso pin is one of the acceptable SPI1 miso pins, right?

Could you confirm that this is a correctly identified issue? It's easy to resolve if my idea here is correct.

Many thanks,
Zack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions