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;
|
||||
if(etimer_pending()) {
|
||||
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;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue