fix dimmer_scale for PCA9685

This commit is contained in:
Andrey
2021-07-25 08:36:12 +03:00
parent 0fab2384b0
commit 87492be38f
2 changed files with 2 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ class MegaOutPort(MegaPushEntity):
def max_dim(self):
if self.dimmer_scale == 1:
return 255
elif self.dimmer == 16:
elif self.dimmer_scale == 16:
return 4095
else:
return 255