fix some cppcheck warnings

This commit is contained in:
Mike Kinney
2022-01-24 07:00:14 +00:00
parent 8a79ede285
commit b3210f6c2c
20 changed files with 82 additions and 45 deletions

View File

@@ -2,7 +2,7 @@
#include "NodeDB.h"
#include "configuration.h"
AirTime *airTime;
AirTime *airTime = NULL;
// Don't read out of this directly. Use the helper functions.
@@ -117,7 +117,9 @@ float AirTime::utilizationTXPercent()
return (float(sum) / float(MS_IN_HOUR)) * 100;
}
AirTime::AirTime() : concurrency::OSThread("AirTime") {}
AirTime::AirTime() : concurrency::OSThread("AirTime") {
airtimes = {};
}
int32_t AirTime::runOnce()
{
@@ -183,4 +185,4 @@ int32_t AirTime::runOnce()
DEBUG_MSG("\n");
*/
return (1000 * 1);
}
}