mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-04 17:14:38 -07:00
mcu: Improve unknown message response warnings in AsyncResponseWrapper
Some checks failed
Build test / build (push) Has been cancelled
Some checks failed
Build test / build (push) Has been cancelled
When delaying response registration, don't warn about any of these messages that arrive prior to the aactual response registration. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
9f8000b707
commit
8e4e42af8f
1 changed files with 1 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ class AsyncResponseWrapper:
|
|||
if cfg_helper.is_config_finalized():
|
||||
self._register()
|
||||
else:
|
||||
self._serial.register_response((lambda p: None), self._name, oid)
|
||||
cfg_helper.register_post_init_callback(self._register)
|
||||
def _register(self):
|
||||
self._serial.get_msgparser().lookup_command(self._msgformat)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue