Skip to content

fix: contact sync across simple_repeater and companion_radio#2673

Open
NickDunklee wants to merge 1 commit into
meshcore-dev:devfrom
NickDunklee:shutdown-contact-sync-pending-work
Open

fix: contact sync across simple_repeater and companion_radio#2673
NickDunklee wants to merge 1 commit into
meshcore-dev:devfrom
NickDunklee:shutdown-contact-sync-pending-work

Conversation

@NickDunklee
Copy link
Copy Markdown

This PR is a cleanup and is in ref to my comments in #2627

@ripplebiz had some recommendations for existing code flows, so I refactored to leverage that. It compiles against a few sensor/repeater/companion node types, but I haven't tested it yet. Figured I'd get eyes on it first before going further. Brain fried now from the file/code juggling, hah. May take a couple of days to check back.

  • hasPendingWork() extended so simple_repeater and companion_radio both gate sleep and shutdown for pending contact writes
  • shutdown loops using hasPendingWork instead of ShutdownHandler idea in previous PR
  • UITask shutdown behavior - all three variants (ui-new, ui-tiny, ui-orig) now set a _wants_shutdown flag instead of calling powerOff() directly
  • "Power off in 5 seconds…" messages added everywhere a shutdown is announced
  • "all" (hopefully) EInk displays are now tagged together using isEInk() constant
  • "all" EInk displays will send a final "Shut Down" message so the displays show "Shut Down" after a successful shutdown

  - hasPendingWork() extended so simple_repeater and
    companion_radio both gate sleep and shutdown for
    pending contact writes
  - shutdown loops using hasPendingWork instead of ShutdownHandler
    idea in previous PR
  - UITask shutdown behavior - all three variants (ui-new,
    ui-tiny, ui-orig) now set a _wants_shutdown flag instead of
    calling powerOff() directly
  - "Power off in 5 seconds…" messages added everywhere a
    shutdown is announced
  - "all" (hopefully) eInk displays are now tagged together
    using isEInk() constant
  - "all" eInk displays will send a final "Shut Down" message
    so the displays show "Shut Down" after a successful shutdown
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.

1 participant