mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 23:13:07 +01:00
Backup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user