Fixed crash after firmware update
This commit is contained in:
parent
92df08baa2
commit
6db6e96d90
@ -192,14 +192,12 @@ void setup() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (!myGyro.setup()) {
|
if (myGyro.setup()) {
|
||||||
ErrorFileLog errLog;
|
|
||||||
errLog.addEntry(
|
|
||||||
F("MAIN: Failed to initialize the gyro, is it connected?"));
|
|
||||||
} else {
|
|
||||||
LOG_PERF_START("main-gyro-read");
|
LOG_PERF_START("main-gyro-read");
|
||||||
myGyro.read();
|
myGyro.read();
|
||||||
LOG_PERF_STOP("main-gyro-read");
|
LOG_PERF_STOP("main-gyro-read");
|
||||||
|
} else {
|
||||||
|
Log.notice(F("Main: Failed to connect to the gyro, software will not be able to detect angles." CR));
|
||||||
}
|
}
|
||||||
|
|
||||||
myBatteryVoltage.read();
|
myBatteryVoltage.read();
|
||||||
|
Loading…
Reference in New Issue
Block a user