Fixed a bug to allow rumble values 255. /JL

This commit is contained in:
2025-04-20 22:47:18 +02:00
parent 4adc27aec5
commit 8cba42f903
4 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ class DualSenseController(ControlsBase):
pass
def rumble(self, left, right):
if not left in range(255) or not right in range(255):
if not left in range(256) or not right in range(256):
raise ValueError("left and right values must be in the range 0 - 255")
self.device.setLeftMotor(left)
self.device.setRightMotor(right)