1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 15:33:05 +01:00

Merge pull request #180 from TobiasE-github/master

Fix error message in  lib/obp60task/OBPSensorTask.cpp
This commit is contained in:
Norbert Walter
2025-07-07 16:15:04 +02:00
committed by GitHub

View File

@@ -499,7 +499,7 @@ void sensorTask(void *param){
if(millis() > starttime5 + 1000 && String(powsensor1) == "off"){
starttime5 = millis();
float rawVoltage = 0;
#ifdef BOARD_OBP40S3 && VOLTAGE_SENSOR
#if defined(BOARD_OBP40S3) && defined(VOLTAGE_SENSOR)
rawVoltage = (float(analogRead(OBP_ANALOG0)) * 3.3 / 4096 + 0.53) * 2; // Vin = 1/2 for OBP40
#endif
#ifdef BOARD_OBP60S3