Skip to content

Commit c5f2f16

Browse files
committed
Fix #1785 1/2
1 parent 2824232 commit c5f2f16

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

firmware/common/radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static uint32_t radio_update_frequency(radio_t* const radio, uint64_t* bank)
433433
freq_if = max283x_set_frequency(&max283x, requested_if, false);
434434
}
435435
if (requested_lo != RADIO_UNSET) {
436-
freq_lo = mixer_set_frequency(&mixer, freq_lo, false);
436+
freq_lo = mixer_set_frequency(&mixer, requested_lo, false);
437437
}
438438
#ifdef IS_PRALINE
439439
if (IS_PRALINE) {

firmware/hackrf_usb/usb_api_radio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ usb_request_status_t usb_vendor_request_set_radio_frequency_explicit(
9898
NULL,
9999
NULL);
100100
} else if (stage == USB_TRANSFER_STAGE_DATA) {
101+
radio_reg_write(
102+
&radio,
103+
RADIO_BANK_ACTIVE,
104+
RADIO_FREQUENCY_RF,
105+
RADIO_UNSET);
101106
radio_reg_write(
102107
&radio,
103108
RADIO_BANK_ACTIVE,

firmware/hackrf_usb/usb_api_transceiver.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ usb_request_status_t usb_vendor_request_set_freq_explicit(
158158
NULL,
159159
NULL);
160160
} else if (stage == USB_TRANSFER_STAGE_DATA) {
161+
radio_reg_write(
162+
&radio,
163+
RADIO_BANK_ACTIVE,
164+
RADIO_FREQUENCY_RF,
165+
RADIO_UNSET);
161166
radio_reg_write(
162167
&radio,
163168
RADIO_BANK_ACTIVE,

0 commit comments

Comments
 (0)