Restored radio.cpp

This commit is contained in:
dqs105 2020-08-24 11:21:30 +08:00 committed by GitHub
parent 94eea961b5
commit 8833b2fce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,14 +157,13 @@ bool set_tuning_frequency(const rf::Frequency frequency) {
void set_rf_amp(const bool rf_amp) { void set_rf_amp(const bool rf_amp) {
rf_path.set_rf_amp(rf_amp); rf_path.set_rf_amp(rf_amp);
/*
if (direction == rf::Direction::Transmit) { if (direction == rf::Direction::Transmit) {
if (rf_amp) if (rf_amp)
led_tx.on(); led_tx.on();
else else
led_tx.off(); led_tx.off();
} }
*/
} }
void set_lna_gain(const int_fast8_t db) { void set_lna_gain(const int_fast8_t db) {