1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/hd44780: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 355c52ac46
commit 2918d06e9c

View File

@ -101,7 +101,7 @@ static void _write_bits(const hd44780_t *dev, uint8_t bits, uint8_t value)
int hd44780_init(hd44780_t *dev, const hd44780_params_t *params)
{
/* write config params to device descriptor */
memcpy(&dev->p, params, sizeof(hd44780_params_t));
dev->p = *params;
/* verify cols and rows */
if ((dev->p.cols > HD44780_MAX_COLS) || (dev->p.rows > HD44780_MAX_ROWS)
|| (dev->p.rows * dev->p.cols > 80)) {