Skip to content

Commit

Permalink
drivers/sdcard_spi: do normal assignment instead of memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees Bakker committed Jan 10, 2019
1 parent 4f9df5c commit 23e2859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sdcard_spi/sdcard_spi.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 23e2859

Please sign in to comment.