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:
Jan Schmidt 2021-11-14 21:07:51 +11:00 committed by Jakob Bornecrantz
parent a14d6f1c2b
commit e18288cc57

View file

@ -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;
}