1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00
This commit is contained in:
norbert-walter
2022-04-18 17:22:24 +02:00
parent 9a20e589da
commit 662dd5e0e2
5 changed files with 270 additions and 24 deletions

View File

@@ -415,8 +415,8 @@ void sensorTask(void *param){
if(String(powsensor1) == "INA226" && INA226_1_ready == true){
double voltage = ina226_1.getBusVoltage();
// Limiter for voltage average building
if(voltage < -30){
voltage = -30;
if(voltage < 0){
voltage = 0;
}
if(voltage > 30){
voltage = 30;