# HG changeset patch # User Zachary T Welch zach@mandolincreekfarm.com # Fake Node ID 7b1fb53d8abc4bc94dd5b51341ff16644812ada0
chirpc: add --list-settings (#2343)
This patch allows the CLI to print out the radio's current settings.
diff --git a/chirpc b/chirpc index 3ca9811..dadf8f2 100755 --- a/chirpc +++ b/chirpc @@ -73,6 +73,9 @@ if __name__ == "__main__": default="mmap", help="Serial port (default: mmap)")
+ parser.add_argument("--list-settings", action="store_true", + help="List settings") + parser.add_argument("-i", "--id", dest="id", default=False, action="store_true", @@ -188,6 +191,10 @@ if __name__ == "__main__":
radio = rclass(s)
+ if options.list_settings: + print radio.get_settings() + sys.exit(0) + if options.raw: data = radio.get_raw_memory(int(args[0])) for i in data: