Skip to content

Commit 6fe2958

Browse files
Fixed warning in sdcard
1 parent ecca541 commit 6fe2958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chips/src/sdcard.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int sdcard_init(sdcard_t * sdcard, ssp_port_t ssp_port, pin_t cs) {
191191
ssp_write(sdcard->ssp, 0xff);
192192

193193
uint8_t argument[4] = { 0, 0, 0, 0 };
194-
uint8_t response[6];
194+
uint8_t response[17];
195195

196196
// the card ought to be ready for us to send things now; let's start with tuning on SPI mode
197197
SDPUTS("Sending GO_IDLE_STATE command.");
@@ -354,7 +354,7 @@ int sdcard_init(sdcard_t * sdcard, ssp_port_t ssp_port, pin_t cs) {
354354

355355
int sdcard_read(sdcard_t * sdcard, uint8_t * data, unsigned int block) {
356356
uint8_t argument[4] = { 0, 0, 0, 0 };
357-
uint8_t response[6];
357+
uint8_t response[17];
358358
uint32_t offset = block;
359359
if (sdcard->sdhc)
360360
offset *= 512;

0 commit comments

Comments
 (0)