Add channel utilization to myNodeInfo

This commit is contained in:
Jm Casler
2021-12-28 23:37:23 -08:00
parent 10dc8233ea
commit 79e75a47f6
4 changed files with 14 additions and 8 deletions

View File

@@ -133,7 +133,10 @@ int32_t AirTime::runOnce()
this->channelUtilization[utilPeriod] = 0;
}
DEBUG_MSG("Channel Utilization percent %3.1f\n", airTime->channelUtilizationPercent());
// Update channel_utilization every second.
myNodeInfo.channel_utilization = airTime->channelUtilizationPercent();
//DEBUG_MSG("Channel Utilization percent %3.1f\n", airTime->channelUtilizationPercent());
}
return (1000 * 1);