mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/wmr: Ignore all other packets when reading config
Any other WMR packets can arrive while we're reading the config block - ignore all of them, not just a few. Fixes config reading failures.
This commit is contained in:
parent
a14d6f1c2b
commit
e18288cc57
|
@ -433,9 +433,7 @@ wmr_config_command_sync(struct wmr_hmd *wh, unsigned char type, unsigned char *b
|
|||
if (buf[0] == WMR_MS_HOLOLENS_MSG_CONTROL) {
|
||||
return size;
|
||||
}
|
||||
} while (buf[0] == WMR_MS_HOLOLENS_MSG_SENSORS || //
|
||||
buf[0] == WMR_MS_HOLOLENS_MSG_DEBUG || //
|
||||
buf[0] == WMR_MS_HOLOLENS_MSG_UNKNOWN_17);
|
||||
} while (true);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue