From 2c9ee68eae2cea4306a786cc0eedb32907504469 Mon Sep 17 00:00:00 2001 From: Brandon Phillips Date: Wed, 18 Oct 2023 15:25:25 -0500 Subject: [PATCH] Fix connection watchdog --- driver.lua | 7 +++++-- driver.xml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/driver.lua b/driver.lua index b91ac4a..641d8bc 100644 --- a/driver.lua +++ b/driver.lua @@ -282,9 +282,12 @@ function EC.WS_CONNECT() return end - CancelTimer('WatchdogTimer') - SetTimer('WatchdogTimer', ONE_SECOND * 30, Connect) + Watchdog() +end +function Watchdog() + CancelTimer('WatchdogTimer') + SetTimer('WatchdogTimer', ONE_SECOND * 30, Watchdog) Connect() end diff --git a/driver.xml b/driver.xml index 78f3bb5..610a7c0 100644 --- a/driver.xml +++ b/driver.xml @@ -5,8 +5,8 @@ HA Coordinator HA Coordinator 09/10/2023 12:00 - 10/16/2023 12:00 - 104 + 10/18/2023 12:00 + 105 lua_gen true false