mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/sdcard_spi: do normal assignment instead of memcpy
This commit is contained in:
parent
4f9df5cac9
commit
23e2859528
@ -62,7 +62,7 @@ static int (*_dyn_spi_rxtx_byte)(sdcard_spi_t *card, char out, char *in);
|
||||
int sdcard_spi_init(sdcard_spi_t *card, const sdcard_spi_params_t *params)
|
||||
{
|
||||
sd_init_fsm_state_t state = SD_INIT_START;
|
||||
memcpy(&card->params, params, sizeof(sdcard_spi_params_t));
|
||||
card->params = *params;
|
||||
card->spi_clk = SD_CARD_SPI_SPEED_PREINIT;
|
||||
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user