Hide simulator devices in release builds and fix AI tracking mode transition handling

This commit is contained in:
Lucas Oskorep committed 2026-10-20 23:20:23 -04:00
1 parent f0e21a7e74
commit 4d7299747c
3 files changed
+90 -62

No files matched your search

@@ -111,6 +111,11 @@ pub fn decode_get_video_mode(data: &[u8]) -> Result<(VideoMode, VideoModeAuxData
actual: data.len(),
});
}
if data[0] == 0xff {
return Err(CodecError::InvalidArgument(
"camera video mode is transitioning (0xff)",
));
}
let mode = VideoMode::from_u8(data[0]);
let mut aux = VideoModeAuxData {
flags: data[1],