diff --git a/firmware/application/apps/replay_app.cpp b/firmware/application/apps/replay_app.cpp index 5b8d4a99..9147c46f 100644 --- a/firmware/application/apps/replay_app.cpp +++ b/firmware/application/apps/replay_app.cpp @@ -1,6 +1,7 @@ /* * Copyright (C) 2016 Jared Boone, ShareBrained Technology, Inc. * Copyright (C) 2016 Furrtek + * Copyleft (ↄ) 2022 NotPike * * This file is part of PortaPack. * @@ -121,6 +122,7 @@ void ReplayAppView::start() { auto open_error = p->open(file_path); if( open_error.is_valid() ) { file_error(); + return; // Fixes TX bug if there's a file error } else { reader = std::move(p); } @@ -150,17 +152,19 @@ void ReplayAppView::start() { rf_amp = (bool)v; }; field_rfamp.set_value(rf_amp ? 14 : 0); + + //Enable Bias Tee if selected + radio::set_antenna_bias(portapack::get_antenna_bias()); radio::enable({ receiver_model.tuning_frequency(), - sample_rate * 8 , + sample_rate * 8, baseband_bandwidth, rf::Direction::Transmit, rf_amp, // previous code line : "receiver_model.rf_amp()," was passing the same rf_amp of all Receiver Apps static_cast(receiver_model.lna()), static_cast(receiver_model.vga()) - }); - + }); } void ReplayAppView::stop(const bool do_loop) { @@ -170,6 +174,7 @@ void ReplayAppView::stop(const bool do_loop) { if (do_loop && check_loop.value()) { start(); } else { + radio::set_antenna_bias(false); //Turn off Bias Tee radio::disable(); button_play.set_bitmap(&bitmap_play); }