projects
/
m17rt
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix timing bugs and add documentation
[m17rt]
/
m17core
/
src
/
decode.rs
diff --git
a/m17core/src/decode.rs
b/m17core/src/decode.rs
index 911d67371cf5f5273446992cd2d472cb4ac18b47..d3dd7ba087fe0c59b3cdcbf0e557c4d44405cb65 100755
(executable)
--- a/
m17core/src/decode.rs
+++ b/
m17core/src/decode.rs
@@
-146,8
+146,6
@@
pub(crate) fn parse_packet(frame: &[f32] /* length 192 */) -> Option<PacketFrame
Some(packet) => packet,
None => return None,
};
Some(packet) => packet,
None => return None,
};
- // TODO: the spec is inconsistent about which bit in packet[25] is EOF
- // https://github.com/M17-Project/M17_spec/issues/147
let final_frame = (packet[25] & 0x80) > 0;
let number = (packet[25] >> 2) & 0x1f;
let counter = if final_frame {
let final_frame = (packet[25] & 0x80) > 0;
let number = (packet[25] >> 2) & 0x1f;
let counter = if final_frame {