typo + skip battcheck

This commit is contained in:
2023-01-04 12:03:11 +01:00
parent a27853297f
commit 8e07b6151f
3 changed files with 9 additions and 2 deletions

View File

@@ -151,6 +151,12 @@ void handleHallSensor(void)
{
uint32_t timeNow = millis();
if(getAudioState())
{
//if music is playing skip batt check
return;
}
if (timeNow - lastADS < ADSINTERVAL)
{
return;

View File

@@ -7,6 +7,7 @@
#include "led.h"
#include "AS5600.h"
#include "Wire.h"
#include "audio.h"
#define ADSINTERVAL 300
#define VBATTINTERVALL 15000

View File

@@ -5,7 +5,7 @@
#include "FS.h"
#if defined ESP_ARDUINO_VERSION_VAL
#if (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
#if (ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0))
#include <LittleFS.h>
#define ESP_V2
#endif