mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-20 16:56:17 +00:00
fixed small timing Bug
This commit is contained in:
parent
46d8804664
commit
622eacd331
@ -175,7 +175,7 @@ int32_t FishEyeStateRoutingModule::runOnce(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (min != UINT32_MAX){
|
if ((min != UINT32_MAX) && ((((int64_t) min) - ((int64_t) getTime())) < 300000)){
|
||||||
return ((int32_t) (((int64_t) min) - ((int64_t) getTime()))) * 1000; // We need seconds here
|
return ((int32_t) (((int64_t) min) - ((int64_t) getTime()))) * 1000; // We need seconds here
|
||||||
}
|
}
|
||||||
return{300000};
|
return{300000};
|
||||||
|
Loading…
Reference in New Issue
Block a user