update ramp time limits

This commit is contained in:
Robin Müller 2022-10-18 13:36:27 +02:00
parent eb7cb3f28c
commit 6088239226
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -220,9 +220,9 @@ def pack_set_speed_command(
pass
if ramp_time_ms < 0 or (
ramp_time_ms > 0 and (ramp_time_ms > 10000 or ramp_time_ms < 10)
ramp_time_ms > 0 and (ramp_time_ms > 20000 or ramp_time_ms < 10)
):
raise ValueError("Invalid Ramp Speed time. Allowed range is [10-10000] ms")
raise ValueError("Invalid Ramp Speed time. Allowed range is [10-20000] ms")
command_id = RwCommandIds.SET_SPEED
command = bytearray()
command += object_id + command_id