mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 18:55:32 +00:00
battery sensor publish with no bl0937 build fix by dedamraz
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user