mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
Adjust braces to match DeviceTelemetry
this is to force correct order of evaluation.
This commit is contained in:
parent
f6c6c2912f
commit
3c6bbff4f9
@ -103,8 +103,8 @@ int32_t EnvironmentTelemetryModule::runOnce()
|
||||
return result;
|
||||
|
||||
uint32_t now = millis();
|
||||
if ((lastSentToMesh == 0 ||
|
||||
(now - lastSentToMesh) >= getConfiguredOrDefaultMs(moduleConfig.telemetry.environment_update_interval)) &&
|
||||
if (((lastSentToMesh == 0) ||
|
||||
((now - lastSentToMesh) >= getConfiguredOrDefaultMs(moduleConfig.telemetry.environment_update_interval))) &&
|
||||
airTime->isTxAllowedAirUtil()) {
|
||||
sendTelemetry();
|
||||
lastSentToMesh = now;
|
||||
|
Loading…
Reference in New Issue
Block a user