Handle no accelerometer

This commit is contained in:
Ben V. Brown
2024-06-08 18:18:53 +10:00
parent 2c34862e4a
commit 19ec5c889f
3 changed files with 13 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ OperatingMode showWarnings(const ButtonState buttons, guiContext *cxt) {
#endif
break;
case 2: // Accelerometer detection
#ifdef NO_ACCEL
cxt->scratch_state.state1 = 3;
#else
if (DetectedAccelerometerVersion == AccelType::Scanning) {
break;
}
@@ -49,6 +52,8 @@ OperatingMode showWarnings(const ButtonState buttons, guiContext *cxt) {
} else {
cxt->scratch_state.state1 = 3;
}
#endif
break;
case 3: