aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorJustin Schuh <jschuh@users.noreply.github.com>2021-06-11 17:41:15 -0700
committerKevinOConnor <kevin@koconnor.net>2021-07-20 18:05:05 -0400
commitbb801905be7b4cc0fe12b350cd2c04230e1f7062 (patch)
tree0f21e39dbd026d92d755063ec456f74ae1583606 /klippy
parent10e72c4b6fcea480094a123ae73c5efeb4272dec (diff)
downloadkutter-bb801905be7b4cc0fe12b350cd2c04230e1f7062.tar.gz
kutter-bb801905be7b4cc0fe12b350cd2c04230e1f7062.tar.xz
kutter-bb801905be7b4cc0fe12b350cd2c04230e1f7062.zip
spi_flash: Make SD updates more tolerant of flaky boards
Validation passes if either of the following succeeds (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Additionally, deletes firmware.bin if found after update succeeds. Signed-off-by: Justin Schuh <code@justinschuh.com>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/msgproto.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py
index 7391a6f4..5a4233e7 100644
--- a/klippy/msgproto.py
+++ b/klippy/msgproto.py
@@ -408,6 +408,8 @@ class MessageParser:
except Exception as e:
logging.exception("process_identify error")
self._error("Error during identify: %s", str(e))
+ def get_raw_data_dictionary(self):
+ return self.raw_identify_data
def get_version_info(self):
return self.version, self.build_versions
def get_messages(self):