Skip to content

Give setFrames more info - #2

Closed
todd-herbert wants to merge 2 commits into
slash-bit:screen-setFrames-updatefrom
todd-herbert:screen-setFrames-update
Closed

Give setFrames more info#2
todd-herbert wants to merge 2 commits into
slash-bit:screen-setFrames-updatefrom
todd-herbert:screen-setFrames-update

Conversation

@todd-herbert

@todd-herbert todd-herbert commented Jun 14, 2024

Copy link
Copy Markdown

(For consideration: possible way to handle meshtastic#4043)

I've just thrown this one together right now on my way to bed. Hopefully it exposes some more information which you can use in setFrames to decide which frame to change to. It's not implemented in setFrames yet, so it'd need a bit of a rewrite there. The new enum value TARGETFRAME_PRESERVE is used to indicate that we should try to return to the same frame, but the other enum values passed make specific requests about which frame to show.

It might be convenient too to use that TargetFrame enum type to store some info inside screenFrames, instead of the oldNumFrames stuff. Not sure about that though!

Just submitting this as a draft, because I'm not 100% sure about it, but if you do want to try work with it, and get good results, feel free to merge it anyway.

I don't think anyone will object to observing the AdminModule this way, but you never know; will have to ask that tomorrow too.

For now, this only solves the problem if the canned message module is disabled. Need to check with the authors to see if we can be even more restrictive here with intercepting ACKs
@todd-herbert

Copy link
Copy Markdown
Author

Might need to handle this slightly differently, seeing how the plan is to draw the waypoint frame directly in the waypoint module.

@todd-herbert
todd-herbert deleted the screen-setFrames-update branch September 14, 2024 02:41
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