Bug #14482
closedNotices incorrectly set system LEDs on hardware with less than three LEDs
100%
Description
Creating or dismissing notices triggers code that sets system LEDs incorrectly.
The functions that are called (led_normalize() and led_morse()) are intended for older devices that are no longer valid but can catch anything using the same LED device names.
Specifically the 1100 uses /dev/led/led2 since the upstream DTS change from 23.01 on.
Updated by Steve Wheeler over 1 year ago
Updated by Jim Pingle over 1 year ago
- Assignee changed from Steve Wheeler to Jim Pingle
We had a function to check the count of LEDs already so I added a check for that in all the LED functions which expect three LEDs, so they'll be skipped otherwise.
This way it can still work if hardware happens to have generic LED drivers on FreeBSD but it shouldn't harm our hardware that has a different count or different names.
Updated by Jim Pingle over 1 year ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset 06c11e21180bdec5b764ea3a9ac1bf50b4b1ab3f.
Updated by Jim Pingle over 1 year ago
- Subject changed from Notices incorrectly set system LEDs. to Notices incorrectly set system LEDs on hardware with less than three LEDs
Updated by Steve Wheeler over 1 year ago
- Status changed from Feedback to Resolved
This looks good on the 1100 with that patch.
Tested: 23.05.1.r.20230620.1137