mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 22:52:07 +00:00
Trunkdor the burninator
This commit is contained in:
parent
77dfc92f1e
commit
e12fd27b49
@ -70,10 +70,9 @@ bool GPSUpdateScheduling::isUpdateDue()
|
|||||||
// Have we been searching for a GPS position for too long?
|
// Have we been searching for a GPS position for too long?
|
||||||
bool GPSUpdateScheduling::searchedTooLong()
|
bool GPSUpdateScheduling::searchedTooLong()
|
||||||
{
|
{
|
||||||
uint32_t minimumOrConfiguredSecs = Default::getConfiguredOrMinimumValue(
|
uint32_t minimumOrConfiguredSecs =
|
||||||
config.position.position_broadcast_secs, default_broadcast_interval_secs);
|
Default::getConfiguredOrMinimumValue(config.position.position_broadcast_secs, default_broadcast_interval_secs);
|
||||||
uint32_t maxSearchMs =
|
uint32_t maxSearchMs = Default::getConfiguredOrDefaultMs(minimumOrConfiguredSecs, default_broadcast_interval_secs);
|
||||||
Default::getConfiguredOrDefaultMs(minimumOrConfiguredSecs, default_broadcast_interval_secs);
|
|
||||||
// If broadcast interval set to max, no such thing as "too long"
|
// If broadcast interval set to max, no such thing as "too long"
|
||||||
if (maxSearchMs == UINT32_MAX)
|
if (maxSearchMs == UINT32_MAX)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user