Skip to content

Commit

Permalink
Merge pull request #119 from kamilsss655/rc20.2.1
Browse files Browse the repository at this point in the history
fix #118 audio stops randomly
  • Loading branch information
kamilsss655 authored Feb 1, 2024
2 parents eaadce9 + 7ca2015 commit 4bf3da5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,6 @@ uint8_t validate_char( uint8_t rchar ) {

void MSG_StorePacket(const uint16_t interrupt_bits) {

// prevent listening to fsk data and squelch (kamilsss655)
AUDIO_AudioPathOff();

//const uint16_t rx_sync_flags = BK4819_ReadRegister(BK4819_REG_0B);

const bool rx_sync = (interrupt_bits & BK4819_REG_02_FSK_RX_SYNC) ? true : false;
Expand All @@ -636,6 +633,9 @@ void MSG_StorePacket(const uint16_t interrupt_bits) {
//UART_printf("\nMSG : S%i, F%i, E%i | %i", rx_sync, rx_fifo_almost_full, rx_finished, interrupt_bits);

if (rx_sync) {
// prevent listening to fsk data and squelch (kamilsss655)
AUDIO_AudioPathOff();

gFSKWriteIndex = 0;
MSG_ClearPacketBuffer();
msgStatus = RECEIVING;
Expand Down

0 comments on commit 4bf3da5

Please sign in to comment.