-
Notifications
You must be signed in to change notification settings - Fork 747
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
Check Position Request for Primary Channel #2638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now remember that there is a way to ignore requests, which seems like a better approach than overriding sendResponse
with largely duplicated logic and exposing currentReply
to all modules. This should be as simple as doing the if-condition within PositionModule's allocReply
, set ignoreRequest
to true and return NULL (see https://github.com/meshtastic/firmware/blob/master/src/modules/NodeInfoModule.cpp#L62). Can you do it in that way?
@GUVWAF That was how I wanted to accomplish this, but allocReply doesn't have access to the incoming request packet. |
Ah, you're right and you mentioned that already, sorry. Your other approach sounds good and would be cleaner indeed. |
You could set |
Prevents leaking location data to secondary channels.
@GUVWAF Seems to work as expected. Agreed, this is a much better approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jp-bennett Great! Looks good to me.
Prevents leaking location data to secondary channels.