mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-20 22:05:08 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue