mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(perf,ux): GPU compute warp, dual-layer OpenXR OSD, HW decode, profiles & modular architecture (Lots 3 & 4)
This commit is contained in:
1 parent
d82a65d9e6
commit
4aa4fc06e7
27 files changed
+9678
-7045
No files matched your search
+2
-2
@@ -295,12 +295,12 @@ impl G29BridgeReceiver {
|
||||
|
||||
fn parse_crsf_hex(hex: &str, telemetry: &Arc<Mutex<TelemetryState>>) {
|
||||
let bytes = hex.trim().as_bytes();
|
||||
if bytes.len() < 8 || bytes.len() % 2 != 0 || bytes.len() > 128 {
|
||||
if bytes.len() < 8 || !bytes.len().is_multiple_of(2) || bytes.len() > 128 {
|
||||
return;
|
||||
}
|
||||
let mut raw = [0u8; 64];
|
||||
let mut out_len = 0;
|
||||
for chunk in bytes.chunks_exact(2) {
|
||||
for chunk in bytes.as_chunks::<2>().0 {
|
||||
let Some(hi) = Self::hex_nibble(chunk[0]) else {
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user