1
0
forked from me/IronOS

Rename PCBVersion to make more sense

This commit is contained in:
Ben V. Brown
2021-01-01 08:52:05 +11:00
parent 28736cb96e
commit d0b4a0f01a
4 changed files with 14 additions and 14 deletions

View File

@@ -371,7 +371,7 @@ static bool settings_setSleepTime(void) {
systemSettings.SleepTime = 0; // can't set time over 10 mins
}
// Remember that ^ is the time of no movement
if (PCBVersion == 99)
if (DetectedAccelerometerVersion == 99)
systemSettings.SleepTime = 0; // Disable sleep on no accel
return systemSettings.SleepTime == 15;
}
@@ -394,7 +394,7 @@ static bool settings_setShutdownTime(void) {
if (systemSettings.ShutdownTime > 60) {
systemSettings.ShutdownTime = 0; // wrap to off
}
if (PCBVersion == 99)
if (DetectedAccelerometerVersion == 99)
systemSettings.ShutdownTime = 0; // Disable shutdown on no accel
return systemSettings.ShutdownTime == 60;
}

View File

@@ -11,7 +11,7 @@
#include <power.hpp>
#include "Settings.h"
#include "cmsis_os.h"
uint8_t PCBVersion = 0;
uint8_t DetectedAccelerometerVersion = 0;
bool settingsWereReset = false;
// FreeRTOS variables