Skip to content

Commit 15aae34

Browse files
authored
Merge pull request #338 from mkinney/bump_nanopb
Bump nanopb
2 parents 075ad01 + 89b0426 commit 15aae34

25 files changed

+1846
-5777
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ dist
55
*.egg-info
66
log_*
77
.eggs
8-
nanopb-0.4.4
9-
nanopb-0.4.5
8+
nanopb-*
109
.*swp
1110
.coverage
1211
*.py-E

.pylintrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Add files or directories matching the regex patterns to the blacklist. The
99
# regex matches against base names, not paths.
10-
ignore-patterns=mqtt_pb2.py,channel_pb2.py,telemetry_pb2.py,admin_pb2.py,radioconfig_pb2.py,deviceonly_pb2.py,apponly_pb2.py,remote_hardware_pb2.py,portnums_pb2.py,mesh_pb2.py,storeforward_pb2.py,cannedmessages_pb2.py
10+
ignore-patterns=mqtt_pb2.py,channel_pb2.py,telemetry_pb2.py,admin_pb2.py,config_pb2.py,deviceonly_pb2.py,apponly_pb2.py,remote_hardware_pb2.py,portnums_pb2.py,mesh_pb2.py,storeforward_pb2.py,cannedmessages_pb2.py,module_config_pb2.py,localonly_pb2.py,node.py
1111

1212

1313

@@ -25,7 +25,6 @@ ignore-patterns=mqtt_pb2.py,channel_pb2.py,telemetry_pb2.py,admin_pb2.py,radioco
2525
#
2626
disable=invalid-name,fixme,logging-fstring-interpolation,too-many-statements,too-many-branches,too-many-locals,no-member,f-string-without-interpolation,protected-access,no-self-use,pointless-string-statement,too-few-public-methods,broad-except,no-else-return,no-else-raise,bare-except,too-many-public-methods
2727

28-
2928
[BASIC]
3029

3130
# Good variable names which should always be accepted, separated by a comma
@@ -41,7 +40,7 @@ bad-names=foo,bar,baz,toto,tutu,tata
4140
max-line-length=150
4241

4342
# Maximum number of lines in a module
44-
max-module-lines=1400
43+
max-module-lines=1600
4544

4645

4746

bin/regen-protos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
./nanopb-0.4.5/generator-bin/protoc -I=proto --python_out meshtastic `ls proto/*.proto`
3+
./nanopb-0.4.6/generator-bin/protoc -I=proto --python_out meshtastic `ls proto/*.proto`
44

55
# workaround for import bug in protoc https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-690618628
66

meshtastic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def onConnection(interface, topic=pub.AUTO_TOPIC): # called when we (re)connect
8080
from meshtastic.node import Node
8181
from meshtastic import (mesh_pb2, portnums_pb2, apponly_pb2, admin_pb2,
8282
telemetry_pb2, remote_hardware_pb2,
83-
channel_pb2, radioconfig_pb2, util)
83+
channel_pb2, config_pb2, util)
8484

8585

8686
# Note: To follow PEP224, comments should be after the module variable.

meshtastic/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import meshtastic.test
1717
from meshtastic import remote_hardware
1818
from meshtastic.ble_interface import BLEInterface
19-
from meshtastic import portnums_pb2, channel_pb2, radioconfig_pb2
19+
from meshtastic import portnums_pb2, channel_pb2, config_pb2
2020
from meshtastic.globals import Globals
2121
from meshtastic.__init__ import BROADCAST_ADDR
2222

@@ -229,12 +229,12 @@ def onConnected(interface):
229229

230230
try:
231231
for field in args.pos_fields:
232-
v_field = radioconfig_pb2.PositionFlags.Value(field)
232+
v_field = config_pb2.PositionFlags.Value(field)
233233
allFields |= v_field
234234

235235
except ValueError:
236236
print("ERROR: supported position fields are:")
237-
print(radioconfig_pb2.PositionFlags.keys())
237+
print(config_pb2.PositionFlags.keys())
238238
print("If no fields are specified, will read and display current value.")
239239

240240
else:
@@ -249,9 +249,9 @@ def onConnected(interface):
249249
prefs = interface.getNode(args.dest).radioConfig.preferences
250250

251251
fieldNames = []
252-
for bit in radioconfig_pb2.PositionFlags.values():
252+
for bit in config_pb2.PositionFlags.values():
253253
if prefs.position_flags & bit:
254-
fieldNames.append(radioconfig_pb2.PositionFlags.Name(bit))
254+
fieldNames.append(config_pb2.PositionFlags.Name(bit))
255255
print(' '.join(fieldNames))
256256

257257
if args.set_team:

meshtastic/admin_pb2.py

Lines changed: 17 additions & 307 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/apponly_pb2.py

Lines changed: 10 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/cannedmessages_pb2.py

Lines changed: 9 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)