Merge pull request #10042 from effelle/development

HATasmota: Fix for shutters
This commit is contained in:
Theo Arends 2020-12-03 12:55:32 +01:00 committed by GitHub
commit 36d2cb499f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -316,12 +316,13 @@ void NewHAssDiscovery(void)
snprintf_P(stemp5, sizeof(stemp5), PSTR("%s%s%d"), stemp5, (i > 0 ? "," : ""), (SerialButton ? 1 : (PinUsed(GPIO_KEY1, i)) & Settings.flag3.mqtt_buttons));
SerialButton = false;
}
#ifdef USE_SHUTTER
stemp6[0] = '\0';
#ifdef USE_SHUTTER
for (uint32_t i = 0; i < MAX_SHUTTERS; i++) {
snprintf_P(stemp6, sizeof(stemp6), PSTR("%s%s%d"), stemp6, (i > 0 ? "," : ""), Settings.shutter_options[i]);
}
#else
snprintf_P(stemp6, sizeof(stemp6), PSTR("0,0,0,0"));
#endif // USE_SHUTTER
ResponseClear(); // Clear retained message