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.
This commit is contained in:
stefanbode 2024-01-20 17:29:50 +01:00 committed by GitHub
parent 05014d48cf
commit 8223777e4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;