mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
Update lastSentToPhone after sendTelemetry (#2522)
This commit is contained in:
parent
fbcd6743fd
commit
94f5c04e19
@ -116,6 +116,7 @@ int32_t EnvironmentTelemetryModule::runOnce()
|
|||||||
// Just send to phone when it's not our time to send to mesh yet
|
// Just send to phone when it's not our time to send to mesh yet
|
||||||
// Only send while queue is empty (phone assumed connected)
|
// Only send while queue is empty (phone assumed connected)
|
||||||
sendTelemetry(NODENUM_BROADCAST, true);
|
sendTelemetry(NODENUM_BROADCAST, true);
|
||||||
|
lastSentToPhone = now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return min(sendToPhoneIntervalMs, result);
|
return min(sendToPhoneIntervalMs, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user