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

Add PageGenerator

This commit is contained in:
norbert-walter
2022-07-19 15:35:28 +02:00
parent c43797fef2
commit 564e7ede3d
5 changed files with 268 additions and 19 deletions

View File

@@ -233,7 +233,7 @@ void sensorTask(void *param){
float maxCurrent = 10.0; // Default value for max. current
float corrFactor = 1; // Correction factor for fix calibration
// Battery sensor initialisation
// Battery sensor initialization
if(String(powsensor1) == "INA226"){
if (!ina226_1.begin()){
api->getLogger()->logDebug(GwLog::ERROR,"Modul 1 INA226 not found, check wiring");
@@ -258,7 +258,7 @@ void sensorTask(void *param){
}
}
// Solar sensor initialisation
// Solar sensor initialization
if(String(powsensor2) == "INA226"){
if (!ina226_2.begin()){
api->getLogger()->logDebug(GwLog::ERROR,"Modul 2 INA226 not found, check wiring");
@@ -279,7 +279,7 @@ void sensorTask(void *param){
}
}
// Generator sensor initialisation
// Generator sensor initialization
if(String(powsensor3) == "INA226"){
if (!ina226_3.begin()){
api->getLogger()->logDebug(GwLog::ERROR,"Modul 3 INA226 not found, check wiring");