Skip to content

Commit

Permalink
regression of MAX_SHUTTERS for stepper motors (#20019)
Browse files Browse the repository at this point in the history
maximize on 4 stepper shutters due to limits in number of counter
  • Loading branch information
stefanbode authored Nov 14, 2023
1 parent 7abf8c4 commit dd9e2a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ void ShutterInit(void)
break;
case SHT_COUNTER:
ShutterGlobal.open_velocity_max = ShutterSettings.open_velocity_max;
// Limit the numbers of shutter to 4 because only 4 counters can be defined
TasmotaGlobal.shutters_present = tmin(TasmotaGlobal.shutters_present, 4);
break;
}

Expand Down

0 comments on commit dd9e2a7

Please sign in to comment.