1
0
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:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 4f9df5cac9
commit 23e2859528

View File

@ -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 {