mirror of https://github.com/g4klx/MMDVM.git
Fix crash in DMR DMO Mode
Modem was crashing on Teensy when running in DMO mode. Crashed as soon as Tx started. Traced to exceeding the bounds of m_poBuffer during the txdelay phase. m_poBuffer was dimensioned to 80 but m_txdelay could be 600 to 1200 so a massive overwrite was happening. Surprisingly this didn't crash on the Due only on the Teensy.
This commit is contained in:
parent
a05eaee855
commit
9f47e67630
|
@ -41,7 +41,7 @@ private:
|
||||||
CSerialRB m_fifo;
|
CSerialRB m_fifo;
|
||||||
arm_fir_instance_q15 m_modFilter;
|
arm_fir_instance_q15 m_modFilter;
|
||||||
q15_t m_modState[70U]; // NoTaps + BlockSize - 1, 42 + 20 - 1 plus some spare
|
q15_t m_modState[70U]; // NoTaps + BlockSize - 1, 42 + 20 - 1 plus some spare
|
||||||
uint8_t m_poBuffer[80U];
|
uint8_t m_poBuffer[1200U];
|
||||||
uint16_t m_poLen;
|
uint16_t m_poLen;
|
||||||
uint16_t m_poPtr;
|
uint16_t m_poPtr;
|
||||||
uint16_t m_txDelay;
|
uint16_t m_txDelay;
|
||||||
|
|
Loading…
Reference in New Issue