cpu/cc430: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent 11e4309f35
commit 0935bd53d2

View File

@ -60,7 +60,7 @@ int rtc_set_time(struct tm *localt)
}
/* copy time to be set */
memcpy(&time_to_set, localt, sizeof(struct tm));
time_to_set = *localt;
set_time = 1;
return 0;
}