This commit is contained in:
stefanbode 2023-05-16 22:34:07 +02:00 committed by GitHub
parent 0385204ca7
commit adff41f962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ void TasDiscoverMessage(void) {
light_controller_isCTRGBLinked,
light_subtype);
for (uint32_t i = 0; i < tmax(TasmotaGlobal.shutters_present, MAX_SHUTTERS); i++) {
for (uint32_t i = 0; i < tmin(TasmotaGlobal.shutters_present, MAX_SHUTTERS); i++) {
#ifdef USE_SHUTTER
ResponseAppend_P(PSTR("%s%d"), (i > 0 ? "," : ""), Settings->shutter_options[i]);
#else