Skip to content

Commit

Permalink
radio_a36plus: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej committed Jul 13, 2024
1 parent 39aeff3 commit bf51dd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platform/drivers/baseband/radio_A36Plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ void radio_enableRx()
{
gpio_setPin(MIC_SPK_EN); // open speaker
bk4819_set_freq(config->rxFrequency / 10);
bk4819_rx_on();
bk4819_rx_on();
radioStatus = RX;
}

void radio_enableTx()
{
gpio_clearPin(MIC_SPK_EN); // open microphone
bk4819_set_freq(config->rxFrequency / 10);
bk4819_set_freq(config->txFrequency / 10);
// if (config->txToneEn){
bk4819_CTDCSS_enable(1);
bk4819_set_CTCSS(0, 1646);
Expand All @@ -145,6 +145,7 @@ void radio_disableRtx()

void radio_updateConfiguration()
{
bk4819_set_freq(config->rxFrequency / 10);
}

rssi_t radio_getRssi()
Expand Down

0 comments on commit bf51dd6

Please sign in to comment.