Handle no accelerometer

This commit is contained in:
Ben V. Brown
2024-06-08 18:18:53 +10:00
committed by Ben V. Brown
parent ea90357247
commit 77596e14b5
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: