Merge pull request #327 from shawnchain/fix_ax25_dac_overflow_error

This commit is contained in:
Jonathan Naylor 2022-09-13 14:09:12 +01:00 committed by GitHub
commit 031b078e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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