mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Added roger beep option in mic TX
This commit is contained in:
parent
37cfcd392d
commit
16acb9db28
9 changed files with 83 additions and 26 deletions
|
@ -49,7 +49,6 @@ void MicTXView::update_vumeter() {
|
|||
|
||||
void MicTXView::on_tx_done() {
|
||||
// Roger beep transmitted, stop transmitting
|
||||
transmitting = false;
|
||||
set_tx(false);
|
||||
}
|
||||
|
||||
|
@ -89,8 +88,8 @@ void MicTXView::set_tx(bool enable) {
|
|||
);
|
||||
gpio_tx.write(0);
|
||||
led_tx.off();
|
||||
transmitting = false;
|
||||
}
|
||||
transmitting = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,7 +125,7 @@ void MicTXView::do_timing() {
|
|||
} else {
|
||||
// PTT disable :(
|
||||
const auto switches_state = get_switches_state();
|
||||
if (!switches_state[1]) // Left button
|
||||
if (!switches_state[1] && transmitting) // Left button
|
||||
set_tx(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue