mirror of
https://github.com/n0mjs710/ipsc2hbpc.git
synced 2026-11-08 04:18:24 +00:00
The repeater sets a per-AMBE-frame "bad voice" flag when it could not correct the frame on RF receive (confirmed OTA on a weak signal). We re-encoded those frames with fresh, valid FEC, so they reached HBP looking good. MMDVMHost replaces uncorrectable frames with silence, so substitute its DMR_SILENCE_DATA frame for each flagged frame. No FEC repair is added in the HBP->IPSC direction: MMDVMHost already corrects every RF frame or replaces it with silence before it reaches the network, so HBP never carries damaged frames. Tests: new bad-voice check; synthetic parity inputs had the flag bits set at random, cleared them (the reference ignores those bits, output unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>