diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-11-28 13:30:48 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-11-29 18:21:57 -0500 |
commit | 7835f50722ac511b5696de2df4e6e1ab2ef26731 (patch) | |
tree | d2cecdef4772b3a32f20b3c7690b3e2af5c6cb02 | |
parent | d161d667412c9a096a52b1e0b156c49158d857d3 (diff) | |
download | kutter-7835f50722ac511b5696de2df4e6e1ab2ef26731.tar.gz kutter-7835f50722ac511b5696de2df4e6e1ab2ef26731.tar.xz kutter-7835f50722ac511b5696de2df4e6e1ab2ef26731.zip |
klippy: Eliminate write_dictionary command line option
The feature is not necessary and it will be difficult to maintain
in the future.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/klippy.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index ecf5da44..191997c5 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -103,11 +103,6 @@ def read_dictionary(filename): dfile.close() return dictionary -def store_dictionary(filename, printer): - f = open(filename, 'wb') - f.write(printer.mcu.serial.msgparser.raw_identify_data) - f.close() - def main(): usage = "%prog [options] <config file>" opts = optparse.OptionParser(usage) @@ -121,8 +116,6 @@ def main(): help="enable debug messages") opts.add_option("-d", dest="read_dictionary", help="file to read for mcu protocol dictionary") - opts.add_option("-D", dest="write_dictionary", - help="file to write mcu protocol dictionary") options, args = opts.parse_args() if len(args) != 1: opts.error("Incorrect number of arguments") @@ -150,8 +143,6 @@ def main(): printer.connect_file(debugoutput, proto_dict) else: printer.connect() - if options.write_dictionary: - store_dictionary(options.write_dictionary, printer) printer.run() if bglogger is not None: |