mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 11:01:15 +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;
|
return result;
|
||||||
|
|
||||||
uint32_t now = millis();
|
uint32_t now = millis();
|
||||||
if ((lastSentToMesh == 0 ||
|
if (((lastSentToMesh == 0) ||
|
||||||
(now - lastSentToMesh) >= getConfiguredOrDefaultMs(moduleConfig.telemetry.environment_update_interval)) &&
|
((now - lastSentToMesh) >= getConfiguredOrDefaultMs(moduleConfig.telemetry.environment_update_interval))) &&
|
||||||
airTime->isTxAllowedAirUtil()) {
|
airTime->isTxAllowedAirUtil()) {
|
||||||
sendTelemetry();
|
sendTelemetry();
|
||||||
lastSentToMesh = now;
|
lastSentToMesh = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user