mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Compilation fix - order_events declared inside wrong #ifdef
This commit is contained in:
parent
b92b3ab3b0
commit
2a1424c969
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,6 @@ SensorConfig sensorConfigs[] = {
|
|||
|
||||
};
|
||||
|
||||
static std::vector<EventData> order_events;
|
||||
|
||||
static String generateCommonInfoAutoConfigTopic(const char* object_id, const char* hostname) {
|
||||
return String("homeassistant/sensor/battery-emulator_") + String(hostname) + "/" + String(object_id) + "/config";
|
||||
}
|
||||
|
@ -83,6 +81,8 @@ static String generateEventsAutoConfigTopic(const char* object_id, const char* h
|
|||
|
||||
#endif // HA_AUTODISCOVERY
|
||||
|
||||
static std::vector<EventData> order_events;
|
||||
|
||||
static void publish_common_info(void) {
|
||||
static JsonDocument doc;
|
||||
#ifdef HA_AUTODISCOVERY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue