mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-08-21 14:36:21 +02: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:
+1
-1
@@ -160,7 +160,7 @@ void CAX25TX::writeBit(bool b)
|
|||||||
m_tablePtr += 11U;
|
m_tablePtr += 11U;
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer[i] = value;
|
buffer[i] = value >> 1;
|
||||||
|
|
||||||
if (m_tablePtr >= AUDIO_TABLE_LEN)
|
if (m_tablePtr >= AUDIO_TABLE_LEN)
|
||||||
m_tablePtr -= AUDIO_TABLE_LEN;
|
m_tablePtr -= AUDIO_TABLE_LEN;
|
||||||
|
|||||||
Reference in New Issue
Block a user