mcu: Improve unknown message response warnings in AsyncResponseWrapper

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 committed 2026-03-04 19:50:53 -05:00
1 parent c89393cdaf
commit 94604293e8
1 file changed
+1
+1
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)