stm: stioio: correctly claim pins

This commit is contained in:
Jeff Epler 2020-07-23 17:58:43 -05:00
parent 3cf1258c87
commit ccd3013396

View File

@ -193,6 +193,12 @@ void common_hal_sdioio_sdcard_construct(sdioio_sdcard_obj_t *self,
reserved_sdio[periph_index - 1] = true;
claim_pin(clock);
claim_pin(command);
for (int i=0; i<num_data; i++) {
claim_pin(data[i]);
}
return;
}