Update xdrv_27_shutter.ino

This commit is contained in:
stefanbode 2021-03-24 16:14:04 +01:00 committed by GitHub
parent 9b2dec437e
commit a60253a9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ void ShutterInit(void)
for (uint32_t i = 0; i < MAX_SHUTTERS; i++) {
// set startrelay to 1 on first init, but only to shutter 1. 90% usecase
Settings.shutter_startrelay[i] = (Settings.shutter_startrelay[i] == 0 && i == 0? 1 : Settings.shutter_startrelay[i]);
if (Settings.shutter_startrelay[i] && (Settings.shutter_startrelay[i] < 31)) {
if (Settings.shutter_startrelay[i] && (Settings.shutter_startrelay[i] < MAX_RELAYS )) {
TasmotaGlobal.shutters_present++;
// Add the two relays to the mask to knaw they belong to shutters