more cppcheck warnings fixes

This commit is contained in:
Mike Kinney
2022-01-24 17:24:40 +00:00
parent be0b9979bc
commit caaa235c5d
57 changed files with 167 additions and 161 deletions

View File

@@ -141,7 +141,7 @@ class PowerFSMThread : public OSThread
PowerFSMThread() : OSThread("PowerFSM") {}
protected:
int32_t runOnce()
int32_t runOnce() override
{
powerFSM.run_machine();
@@ -242,7 +242,7 @@ class ButtonThread : public OSThread
protected:
/// If the button is pressed we suppress CPU sleep until release
int32_t runOnce()
int32_t runOnce() override
{
canSleep = true; // Assume we should not keep the board awake