-
Notifications
You must be signed in to change notification settings - Fork 192
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
464: allow for 0x node prefix values #731
Conversation
This doesn't look bad, aside from the CI errors (looks like it wants a tuple, not a list, for the |
@ianmcorvidae ok! I can move this into the _sendPacket function. That's no problem. Do we still want to keep the documentation for [!xxxxxxxx, xxxxxxxxxx] or drop those changes? |
I think those metavar changes are fine but it looks like mypy wants it to be a tuple instead of a list. That should just mean I do also notice that it's complaining that
|
@ianmcorvidae ok, I think that got it. I tried several things but the metavars deal would constantly throw errors no matter what I did. Once I went back to the old metavars definition of I also ran a manual test locally between my nodes using |
I could also do a |
just saw the build errors, I'm on it. |
@ianmcorvidae sorry about that. fixed the issues the linter was yelling about. |
Perfect, no worries. I'll kick it off again in case there's anything else. The linter can get a bit annoying at times so that's understood, haha |
Looks like that's all resolved now. Thanks for the contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #731 +/- ##
==========================================
+ Coverage 60.35% 60.58% +0.22%
==========================================
Files 24 24
Lines 3970 4031 +61
==========================================
+ Hits 2396 2442 +46
- Misses 1574 1589 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@ianmcorvidae you're welcome! hopefully the first of many. |
A potential answer to issue 464. This allows users to run commands using a different prefix (
0x
) from the meshtastic CLI.The code change here checks for if the node ID supplied can be turned into an int or not. If so, just pass the node id directly in. If not, it must be a string. Grab the last 8 characters of the node id and force-format the id to have a
!
prefix. That way users can provide any prefix they want to the meshtastic CLI.