aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/msgproto.py
Commit message (Collapse)AuthorAgeFilesLines
* console: Add LIST command that shows available commands and variablesKevin O'Connor2017-08-081-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Catch exceptions during identify data parsingKevin O'Connor2017-07-041-12/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Export static_strings from mcu to host as a dictionaryKevin O'Connor2017-07-021-3/+4
| | | | | | Export the static strings as a dictionary instead of as a list. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Remove some obscure python2 dependenciesKevin O'Connor2017-06-101-1/+1
| | | | | | | Don't modify dictionaries while iterating them and be careful to use // when doing an integer divide. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Wrap strings passed via output() in repr()Kevin O'Connor2017-05-021-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Rework dump() so it also works with paramsKevin O'Connor2017-04-251-21/+24
| | | | | | | | | Always call the regular .parse() method for each message type during dump() - add a new .format_params() method for dumping a verbose representation of the parsed message. This allows the new format_params() to also be used with data already parsed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Support reset commandKevin O'Connor2017-04-131-0/+1
| | | | | | | Extend the FIRMWARE_RESTART command so that it can use the firmware "reset" command instead of the "arduino" mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Warn the user on common errors due to old firmwareKevin O'Connor2017-01-101-0/+12
| | | | | | | | Check for msgproto.error and warn the user about version firmware version mismatch. Raise msgproto.error when extracting firmware constants. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: No need to define __str__ and __init__ methods on exception classesKevin O'Connor2016-11-291-4/+1
| | | | | | The base Exception class already defines these methods. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Initial commit of source code.Kevin O'Connor2016-05-251-0/+313
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>