Fix default MqttLog and Shutter Accuracy

Fix default MqttLog and Shutter Accuracy
This commit is contained in:
Theo Arends 2019-10-07 10:34:40 +02:00
parent a620c3542f
commit a8d9da243f
1 changed files with 4 additions and 0 deletions

View File

@ -1132,6 +1132,10 @@ void SettingsDelta(void)
if (Settings.version < 0x0606000C) {
memset(&Settings.register8, 0x00, sizeof(Settings.register8));
}
if (Settings.version < 0x0606000F) {
Settings.shutter_accuracy = 0;
Settings.mqttlog_level = MQTT_LOG_LEVEL;
}
Settings.version = VERSION;
SettingsSave(1);