precommit fixes
This commit is contained in:
parent
e2fee1fb35
commit
66c6c44a38
@ -45,7 +45,7 @@ bool GyroSensor::setup() {
|
|||||||
|
|
||||||
uint8_t id = accelgyro.getDeviceID();
|
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;
|
ErrorFileLog errLog;
|
||||||
errLog.addEntry(F("GYRO: Failed to connect to gyro, is it connected?"));
|
errLog.addEntry(F("GYRO: Failed to connect to gyro, is it connected?"));
|
||||||
_sensorConnected = false;
|
_sensorConnected = false;
|
||||||
|
@ -377,7 +377,7 @@ void goToSleep(int sleepInterval) {
|
|||||||
void loop() {
|
void loop() {
|
||||||
switch (runMode) {
|
switch (runMode) {
|
||||||
case RunMode::storageMode:
|
case RunMode::storageMode:
|
||||||
// This point is never reached, just here to remove warning.
|
// This point is never reached, just here to remove warning.
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RunMode::configurationMode:
|
case RunMode::configurationMode:
|
||||||
|
@ -29,7 +29,12 @@ SOFTWARE.
|
|||||||
#include <ArduinoLog.h>
|
#include <ArduinoLog.h>
|
||||||
#include <stdlib.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;
|
extern RunMode runMode;
|
||||||
|
|
||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
|
Loading…
Reference in New Issue
Block a user