From d0dfea08225d1638ce8e0767b0c28a6e20adefd2 Mon Sep 17 00:00:00 2001 From: Tester23 <85486843+openshwprojects@users.noreply.github.com> Date: Sat, 27 Sep 2025 18:22:02 +0200 Subject: [PATCH] battery sensor publish with no bl0937 build fix by dedamraz --- src/httpserver/http_fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 7c2ffaecb..abeb8cf0c 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -1819,8 +1819,8 @@ void doHomeAssistantDiscovery(const char* topic, http_request_t* request) { #ifdef ENABLE_DRIVER_BL0937 measuringPower = DRV_IsMeasuringPower(); - measuringBattery = DRV_IsMeasuringBattery(); #endif + measuringBattery = DRV_IsMeasuringBattery(); PIN_get_Relay_PWM_Count(&relayCount, &pwmCount, &dInputCount); addLogAdv(LOG_INFO, LOG_FEATURE_HTTP, "HASS counts: %i rels, %i pwms, %i inps, %i excluded", relayCount, pwmCount, dInputCount, excludedCount);