mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-03 05:19:03 +00:00
for app jammer failure fix (#3303)
* for app jammer failure * copy hup warning code from hopper to jammer * remove my PR RECORD FILE * copy hup warning code from hopper to jammer
This commit is contained in:
+20
-2
@@ -407,8 +407,26 @@ JammerView::JammerView(NavigationView& nav)
|
||||
button_transmit.on_select = [this](Button&) {
|
||||
if (jamming || cooling)
|
||||
stop_tx();
|
||||
else
|
||||
start_tx();
|
||||
else {
|
||||
if (options_hop.selected_index_value() * 10 < 50) {
|
||||
nav_.display_modal(
|
||||
"Warning",
|
||||
"Hopping interval is\nbelow 50ms.\n\n"
|
||||
"THIS WILL FREEZE\nTHE HACKRF.\n"
|
||||
"Press RESET button\nto stop.\n\n"
|
||||
"Are you sure?",
|
||||
YESNO,
|
||||
[this](bool choice) {
|
||||
if (choice) {
|
||||
chThdSleepMilliseconds(50);
|
||||
start_tx();
|
||||
}
|
||||
},
|
||||
TRUE);
|
||||
} else {
|
||||
start_tx();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user