mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/apa102: do normal assignment instead of memcpy
This commit is contained in:
parent
2d04cdfb89
commit
d50038f9d0
@ -49,7 +49,7 @@ void apa102_init(apa102_t *dev, const apa102_params_t *params)
|
||||
{
|
||||
assert(dev && params);
|
||||
|
||||
memcpy(dev, params, sizeof(apa102_params_t));
|
||||
*dev = *params;
|
||||
|
||||
gpio_init(dev->data_pin, GPIO_OUT);
|
||||
gpio_init(dev->clk_pin, GPIO_OUT);
|
||||
|
Loading…
Reference in New Issue
Block a user