mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-08 17:28:58 +00:00
JN516x clock module sign error fix
This commit is contained in:
parent
29c9907c08
commit
1818700bde
@ -258,7 +258,7 @@ clock_arch_time_to_etimer(void)
|
|||||||
clock_time_t time_to_etimer;
|
clock_time_t time_to_etimer;
|
||||||
if(etimer_pending()) {
|
if(etimer_pending()) {
|
||||||
time_to_etimer = etimer_next_expiration_time() - clock_time();
|
time_to_etimer = etimer_next_expiration_time() - clock_time();
|
||||||
if(time_to_etimer < 0) {
|
if((int32_t)time_to_etimer < 0) {
|
||||||
time_to_etimer = 0;
|
time_to_etimer = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user