Applied pre-commit on v1.0 source

This commit is contained in:
Magnus Persson
2022-05-08 09:54:25 +02:00
parent 5e9e705b96
commit 390c0882d1
11 changed files with 60 additions and 45 deletions

View File

@ -32,7 +32,7 @@ SOFTWARE.
#include <webserver.hpp>
#include <wifi.hpp>
//#define FORCE_GRAVITY_MODE
// #define FORCE_GRAVITY_MODE
// Define constats for this program
#ifdef DEACTIVATE_SLEEPMODE
@ -275,8 +275,11 @@ bool loopReadGravity() {
bool pushExpired = (abs((int32_t)(millis() - pushMillis)) >
(myConfig.getSleepInterval() * 1000));
if (myAdvancedConfig.isIgnoreLowAnges() && (angle < myConfig.getFormulaData().a[0]) ) {
Log.warning(F("Main: Angle is lower than water, so we regard this as faulty and dont send any data." CR));
if (myAdvancedConfig.isIgnoreLowAnges() &&
(angle < myConfig.getFormulaData().a[0])) {
Log.warning(
F("Main: Angle is lower than water, so we regard this as faulty and "
"dont send any data." CR));
pushExpired = false;
}