cpu/cc430: do normal assignment instead of memcpy
This commit is contained in:
parent
11e4309f35
commit
0935bd53d2
@ -60,7 +60,7 @@ int rtc_set_time(struct tm *localt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* copy time to be set */
|
/* copy time to be set */
|
||||||
memcpy(&time_to_set, localt, sizeof(struct tm));
|
time_to_set = *localt;
|
||||||
set_time = 1;
|
set_time = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user