mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-21 23:19:02 +00:00
Added basic POCSAG receiver
Added Yes/no modal screen (for future tx warnings)
This commit is contained in:
@@ -415,14 +415,19 @@ XylosView::XylosView(NavigationView& nav) {
|
||||
};*/
|
||||
|
||||
// Single transmit
|
||||
button_transmit.on_select = [this](Button&) {
|
||||
button_transmit.on_select = [this,&nav](Button&) {
|
||||
if (tx_mode == IDLE) {
|
||||
// audio::headphone::set_volume(volume_t::decibel(90 - 99) + audio::headphone::volume_range().max);
|
||||
tx_mode = SINGLE;
|
||||
button_transmit.set_style(&style_cancel);
|
||||
button_transmit.set_text("Wait");
|
||||
generate_message();
|
||||
start_tx();
|
||||
/*auto modal_view = nav.push<ModalMessageView>("TX", "TX ?", true);
|
||||
modal_view->on_choice = [this](bool choice) {
|
||||
if (choice) {*/
|
||||
// audio::headphone::set_volume(volume_t::decibel(90 - 99) + audio::headphone::volume_range().max);
|
||||
tx_mode = SINGLE;
|
||||
button_transmit.set_style(&style_cancel);
|
||||
button_transmit.set_text("Wait");
|
||||
generate_message();
|
||||
start_tx();
|
||||
//}
|
||||
//};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user