Adjust braces to match DeviceTelemetry

this is to force correct order of evaluation.
This commit is contained in:
Thomas Göttgens 2023-02-02 19:10:18 +01:00
parent f6c6c2912f
commit 3c6bbff4f9

View File

@ -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;