Solves random USB/LSB mode in SSB Mic App (H1R1). (#1882)

* Solves random USB/LSB mode in SSB Mic App (H1R1).

* format
This commit is contained in:
Brumi-2021 2024-02-11 23:16:29 +01:00 committed by GitHub
parent 0f6a9277a8
commit 7598c25fc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,8 +116,9 @@ void set_direction(const rf::Direction new_direction) {
/* TODO: Refactor all the various "Direction" enumerations into one. */
/* TODO: Only make changes if direction changes, but beware of clock enabling. */
// Prevents ghosting when switching back to RX from TX mode.
hackrf::cpld::load_sram_no_verify();
// That below code line , was used to prevent RX interf ghosting when switching back to RX from any TX mode, but in recent code. it seems not necessary.
// Deleting that load_sram_no_verify() (or the original , load_sram() ), solves random TX swap I/Q problem in H1R1 , others OK- (and no side effects to all).
// hackrf::cpld::load_sram_no_verify(); // After commit "removed the use of the hackrf cpld eeprom #1732", in a H1R1, Mic App wrong SSB TX with random USB/LSB change.
direction = new_direction;