From d0e2fc1eac75dce84f73db4ff50a5ae1fd1c0c9b Mon Sep 17 00:00:00 2001 From: TobiasE-github Date: Sun, 6 Jul 2025 15:41:18 +0200 Subject: [PATCH] Fix error message in lib/obp60task/OBPSensorTask.cpp --- lib/obp60task/OBPSensorTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/obp60task/OBPSensorTask.cpp b/lib/obp60task/OBPSensorTask.cpp index 0215811..311da1c 100644 --- a/lib/obp60task/OBPSensorTask.cpp +++ b/lib/obp60task/OBPSensorTask.cpp @@ -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