Move RFFC5072 setup before enabling RF power.
This commit is contained in:
@ -339,7 +339,10 @@ void rf_path_init(rf_path_t* const rf_path)
|
||||
max2837_setup(&max2837);
|
||||
max2837_start(&max2837);
|
||||
|
||||
// On HackRF One, the mixer is now set up earlier in boot.
|
||||
#ifndef HACKRF_ONE
|
||||
mixer_setup(&mixer);
|
||||
#endif
|
||||
switchctrl_set(rf_path, switchctrl);
|
||||
}
|
||||
|
||||
|
@ -229,6 +229,11 @@ int main(void)
|
||||
detect_hardware_platform();
|
||||
pin_setup();
|
||||
enable_1v8_power();
|
||||
#ifdef HACKRF_ONE
|
||||
// Set up mixer before enabling RF power, because its
|
||||
// GPO is used to control the antenna bias tee.
|
||||
mixer_setup(&mixer);
|
||||
#endif
|
||||
#if (defined HACKRF_ONE || defined RAD1O)
|
||||
enable_rf_power();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user