1 pin init should use 1 pin mode!

pull/7/head
Mike Bell 2021-02-13 02:04:57 +00:00 zatwierdzone przez graham sanderson
rodzic 4092a438c4
commit f12fa008e1
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -489,6 +489,7 @@ void read_status(bool dump)
int sd_set_wide_bus(bool wide)
{
printf("Set bus width: %d\n", (wide ? 4 : 1));
if (bus_width == bw_unknown || bus_width == (wide ? bw_narrow : bw_wide)) {
if (wide && !allow_four_data_pins) {
printf("May not select wide pus without 4 data pins\n");
@ -651,7 +652,7 @@ static int sd_init( bool _allow_four_data_pins)
int sd_init_1pin() {
bi_decl_if_func_used(bi_1pin_with_name(PICO_SD_DAT0_PIN, "SDIO data"));
return sd_init(true);
return sd_init(false);
}
int sd_init_4pins() {