From 8223777e4f4195a43787a90956f2d77527d7d3a1 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Sat, 20 Jan 2024 17:29:50 +0100 Subject: [PATCH] Improve init behavior (#20548) Ensure filesystem init is executed after so80 1. The shutter command will check for proper init and if not done will do it. --- tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 0a617123c..d8d90fdef 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -2312,6 +2312,11 @@ bool Xdrv27(uint32_t function) XdrvMailbox.index = i; XdrvMailbox.payload = rescue_payload; XdrvMailbox.data_len = rescue_data_len; + if (!ShutterSettings.version) { + ShutterSettingsLoad(0); + ShutterSettings.shutter_startrelay[0] = 1; + ShutterInit(); + } result = DecodeCommand(kShutterCommands, ShutterCommand); } break;