Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Inav 7.0.0 last build not working on SPEEDYBEEF405V3 #9162

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/main/drivers/sdcard/sdcard_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ static bool sdcardSpi_poll(void)
doMore:
switch (sdcard.state) {
case SDCARD_STATE_RESET:
busSetSpeed(sdcard.dev, BUS_SPEED_INITIALIZATION);
sdcardSpi_select();

initStatus = sdcardSpi_sendCommand(SDCARD_COMMAND_GO_IDLE_STATE, 0);
Expand All @@ -476,8 +475,6 @@ static bool sdcardSpi_poll(void)
break;

case SDCARD_STATE_CARD_INIT_IN_PROGRESS:
busSetSpeed(sdcard.dev, BUS_SPEED_INITIALIZATION);

if (sdcardSpi_checkInitDone()) {
if (sdcard.version == 2) {
// Check for high capacity card
Expand Down Expand Up @@ -516,8 +513,6 @@ static bool sdcardSpi_poll(void)
busSetSpeed(sdcard.dev, BUS_SPEED_STANDARD);
break;
case SDCARD_STATE_INITIALIZATION_RECEIVE_CID:
busSetSpeed(sdcard.dev, BUS_SPEED_INITIALIZATION);

if (sdcardSpi_receiveCID()) {
sdcardSpi_deselect();

Expand Down Expand Up @@ -881,8 +876,6 @@ void sdcardSpi_init(void)
sdcard.operationStartTime = millis();
sdcard.state = SDCARD_STATE_RESET;
sdcard.failureCount = 0;

busSetSpeed(sdcard.dev, BUS_SPEED_STANDARD);
}

sdcardVTable_t sdcardSpiVTable = {
Expand Down