Skip to content

Commit

Permalink
Merge pull request #371 from meshtastic/big-proto-refactor
Browse files Browse the repository at this point in the history
Update python to use reworked protos
  • Loading branch information
thebentern authored Sep 9, 2022
2 parents 4b0e3ae + c0006f8 commit e083cda
Show file tree
Hide file tree
Showing 14 changed files with 163 additions and 165 deletions.
14 changes: 7 additions & 7 deletions meshtastic/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,25 +471,25 @@ def setSimpleConfig(modem_preset):

# handle the simple radio set commands
if args.ch_vlongslow:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.VLongSlow)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.VERY_LONG_SLOW)

if args.ch_longslow:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LongSlow)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_SLOW)

if args.ch_longfast:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LongFast)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.LONG_FAST)

if args.ch_medslow:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.MedSlow)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.MEDIUM_SLOW)

if args.ch_medfast:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.MedFast)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.MEDIUM_FAST)

if args.ch_shortslow:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.ShortSlow)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.SHORT_SLOW)

if args.ch_shortfast:
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.ShortFast)
setSimpleConfig(config_pb2.Config.LoRaConfig.ModemPreset.SHORT_FAST)

if args.ch_set or args.ch_enable or args.ch_disable:
closeNow = True
Expand Down
12 changes: 6 additions & 6 deletions meshtastic/admin_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion meshtastic/channel_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e083cda

Please sign in to comment.