Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue5194 external notification module refactor #5384

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Blake-Latchford
Copy link
Contributor

Centralize ExternalNotificationModule LED handling

This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.

This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.
@Blake-Latchford
Copy link
Contributor Author

Blake-Latchford commented Nov 17, 2024

Flashed to my Heltek v3, and I updated the variant locally to drive some unused pins as LEDs. Logging verified that on startup the LED was disabled. I'm currently trying to figure out how to simulate message reception given that I only own one node right now.

INFO  | ??:??:?? 1 [ExternalNotification] Turning off external notification: 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 0 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 1 
DEBUG | ??:??:?? 1 [ExternalNotification] setLEDs red=0, green=0, blue=0
INFO  | ??:??:?? 1 [ExternalNotification] 2
INFO  | ??:??:?? 1 [ExternalNotification] 

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert the protobuf change, this will generate merge conficts

{}
#undef SCALE_ALPHA
>>>>>>> 79093de8 (Fix compilation error due to `rgb` name conflict.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You somehow checked in a conflicted file. there are merge marks that will bomb during compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants