moved maxfrag to own function

This commit is contained in:
Magnus Persson
2022-04-27 22:15:35 +02:00
parent 8342341cb9
commit e91c8af1a5
4 changed files with 61 additions and 64 deletions

View File

@ -60,6 +60,12 @@ void checkSleepMode(float angle, float volt) {
return;
#endif
#if defined( FORCE_GRAVITY_MODE )
Log.notice(
F("MAIN: Forcing device into gravity mode for debugging" CR));
runMode = RunMode::gravityMode;
#endif
const RawGyroData &g = myConfig.getGyroCalibration();
if (!g.ax && !g.ay && !g.az && !g.gx && !g.gy && !g.gz) {