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:
Shawn Chain 2022-09-13 20:18:03 +08:00
parent f898390956
commit 5d987969a9
1 changed files with 1 additions and 1 deletions

View File

@ -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;