1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

cpu/lpc2387: Fixed invalid call to send_msg in lpc2387-mci.c

At `lpc2387-mci.c:383` in `send_cmd()` an `assert()` enforces that parameter
`buff` is not `NULL`. At `lpc2387-mci.c:538` in `mci_initialize()` `send_cmd()`
was called with `buff==NULL`.
This commit is contained in:
Marian Buschsieweke 2018-05-29 18:05:18 +02:00
parent fce5c758f7
commit 2c901ff181
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -535,7 +535,7 @@ diskio_sta_t mci_initialize(void)
//for (Timer[0] = 2; Timer[0]; );
xtimer_usleep(250);
send_cmd(CMD0, 0, 0, NULL); /* Enter idle state */
send_cmd(CMD0, 0, 0, resp); /* Enter idle state */
CardRCA = 0;
/*---- Card is 'idle' state ----*/