1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

Fix undervoltage detection

This commit is contained in:
norbert-walter
2024-04-25 22:11:44 +02:00
parent 81cee58f14
commit e4af6f9978
3 changed files with 53 additions and 45 deletions

View File

@@ -54,7 +54,7 @@
#define TONE4 4000 // 4000Hz
// Analog Input
#define OBP_ANALOG0 4 // Voltage power supplay
#define MIN_VOLTAGE 9.0 // Min voltage for under voltage detection (then goto deep sleep)
#define MIN_VOLTAGE 10.0 // Min voltage for under voltage detection (then goto deep sleep)
#define POWER_FAIL_TIME 2 // in [ms] Accept min voltage until 2 x 1ms (for under voltage gaps by engine start)
// Touch buttons
#define TOUCHTHRESHOLD 50000// Touch sensitivity, lower values more sensitiv