mcu: Improve unknown message response warnings in AsyncResponseWrapper
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:
Kevin O'Connor 2026-02-27 14:05:07 -05:00
parent 9f8000b707
commit 8e4e42af8f

View file

@ -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)