nefarius / DsHidMini

Virtual HID Mini-user-mode-driver for Sony DualShock 3 Controllers
https://docs.nefarius.at/projects/DsHidMini/
BSD 3-Clause "New" or "Revised" License
1.2k stars 53 forks source link

Bar Graph LED mode charging animation gets stuck if switching from Single LED mode on hot-reload #344

Closed Kanuan closed 5 months ago

Kanuan commented 5 months ago

Bar graph LED mode charging animation progressively turns on all LEDs from 1 to 4 before resetting, meaning when it reachs LED 4 all leds before it will be ON too.

Single LED mode charging animation is similar, but it only keeps a single LED turned on, moving from 1 to 4 until resetting.

The issue

If switching from single LED mode to Bar Graph mode on a hot reload while the currently lit LED is NOT 1, then Bar Graph charging animation will continue from the currently lit LED until reaching LED 4 then get stuck there

Example

Switching from Single LED to Bar Graph while LED 2 was lit will make it so the bar graph gets stuck in [ ]-[X]-[X-[X]