Add back leader update

This commit is contained in:
2026-01-06 17:19:48 -05:00
parent 1e411f279c
commit a64a0cd324

View File

@@ -34,6 +34,13 @@ CommunicationRouter::~CommunicationRouter() { vTaskDelete(m_router_thread); }
const auto that = static_cast<CommunicationRouter *>(args);
while (true) {
if (std::chrono::system_clock::now() - that->m_last_leader_updated >
std::chrono::seconds(15)) {
that->m_last_leader_updated = std::chrono::system_clock::now();
ESP_LOGI(TAG, "Updating leader");
that->update_leader();
}
for (uint8_t channel = 0;
channel <
MODULE_TO_NUM_CHANNELS_MAP[that->m_config_manager.get_module_type()];