Handle no accelerometer

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

View File

@@ -30,6 +30,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;
}
@@ -48,6 +51,8 @@ OperatingMode showWarnings(const ButtonState buttons, guiContext *cxt) {
} else {
cxt->scratch_state.state1 = 3;
}
#endif
break;
case 3: