precommit fixes

This commit is contained in:
Magnus Persson 2022-07-05 17:58:14 +02:00
parent e2fee1fb35
commit 66c6c44a38
3 changed files with 8 additions and 3 deletions

View File

@ -45,7 +45,7 @@ bool GyroSensor::setup() {
uint8_t id = accelgyro.getDeviceID();
if (id != 0x34 && id != 0x38) { // Allow both MPU6050 and MPU6000
if (id != 0x34 && id != 0x38) { // Allow both MPU6050 and MPU6000
ErrorFileLog errLog;
errLog.addEntry(F("GYRO: Failed to connect to gyro, is it connected?"));
_sensorConnected = false;

View File

@ -377,7 +377,7 @@ void goToSleep(int sleepInterval) {
void loop() {
switch (runMode) {
case RunMode::storageMode:
// This point is never reached, just here to remove warning.
// This point is never reached, just here to remove warning.
break;
case RunMode::configurationMode:

View File

@ -29,7 +29,12 @@ SOFTWARE.
#include <ArduinoLog.h>
#include <stdlib.h>
enum RunMode { gravityMode = 0, configurationMode = 1, wifiSetupMode = 2, storageMode = 3 };
enum RunMode {
gravityMode = 0,
configurationMode = 1,
wifiSetupMode = 2,
storageMode = 3
};
extern RunMode runMode;
#if defined(ESP8266)