Skip to content

Commit

Permalink
fix led exception with EFIS-L and FCU only
Browse files Browse the repository at this point in the history
  • Loading branch information
schenlap committed Jan 30, 2025
1 parent 078e5d2 commit 672f551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winwing_fcu.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def winwing_fcu_set_led(ep, led, brightness):
data = [0x02, 0x10, 0xbb, 0, 0, 3, 0x49, led.value, brightness, 0,0,0,0,0]
elif led.value < 200 and device_config & DEVICEMASK.EFISR: # EFIS_R
data = [0x02, 0x0e, 0xbf, 0, 0, 3, 0x49, led.value - 100, brightness, 0,0,0,0,0]
elif device_config & DEVICEMASK.EFISL: # EFIS_L
elif led.value >= 200 and led.value < 300 and device_config & DEVICEMASK.EFISL: # EFIS_L
data = [0x02, 0x0d, 0xbf, 0, 0, 3, 0x49, led.value - 200, brightness, 0,0,0,0,0]
if 'data' in locals():
cmd = bytes(data)
Expand Down

0 comments on commit 672f551

Please sign in to comment.