mirror of https://github.com/g4klx/MMDVM.git
The AX25 sine value ranges from 0-4095, and inside io.write() will perform the calculation (value * q15_t(txLevel) >> 15) which may exceed 4096 and cause the DAC Overflow error
This commit is contained in:
parent
f898390956
commit
5d987969a9
|
@ -160,7 +160,7 @@ void CAX25TX::writeBit(bool b)
|
|||
m_tablePtr += 11U;
|
||||
}
|
||||
|
||||
buffer[i] = value;
|
||||
buffer[i] = value >> 1;
|
||||
|
||||
if (m_tablePtr >= AUDIO_TABLE_LEN)
|
||||
m_tablePtr -= AUDIO_TABLE_LEN;
|
||||
|
|
Loading…
Reference in New Issue