Skip to content

Commit

Permalink
final test
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 24, 2023
1 parent 9cdf0a7 commit 490e092
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ports/mimxrt10xx/apps/factory_test_metro_sd/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ int main(void) {

while (1) {
loop();
test_sd();
tud_task();
tud_cdc_write_flush();

}
}

Expand Down Expand Up @@ -136,8 +136,6 @@ void loop(void) {
return;
if (!testpins(12, PIN_SCL, all_pins, sizeof(all_pins)))
return;
if (!testpins(PIN_MOSI, PIN_MISO, all_pins, sizeof(all_pins)))
return;
if (!testpins(AD2, AD4, all_pins, sizeof(all_pins)))
return;
if (!testpins(AD3, AD5, all_pins, sizeof(all_pins)))
Expand All @@ -159,6 +157,9 @@ void loop(void) {
return;
}

if (! test_sd() ) return;


Serial_printf("*** TEST OK! ***\n\r");
}

Expand Down

0 comments on commit 490e092

Please sign in to comment.