Hide simulator devices in release builds and fix AI tracking mode transition handling
This commit is contained in:
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],
|
||||
|
||||
Reference in new issue
Block a user