Added basic POCSAG receiver

Added Yes/no modal screen (for future tx warnings)
This commit is contained in:
furrtek
2016-08-23 08:45:33 +02:00
parent c2fbc0c8d5
commit 02f0271553
34 changed files with 944 additions and 42 deletions
+12 -7
View File
@@ -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();
//}
//};
}
};
}