mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-17 06:02:19 -04:00
Digital mode for waveform widget, 2.4GHZ WLAN channels in jammer
This commit is contained in:
parent
b10c88e271
commit
368f0f7fb0
10 changed files with 136 additions and 47 deletions
|
@ -54,7 +54,7 @@ void WhipCalcView::update_result() {
|
|||
length /= 0.14;
|
||||
if (int(length) <= 4) {
|
||||
auto elements = to_string_dec_int((int)length, 1);
|
||||
text_result_ant500.set(elements + " " + frac_str[((int(length * 10.0) % 10) + 1) / 3] + "elements");
|
||||
text_result_ant500.set(elements + " " + frac_str[((int(length * 10.0) % 10) + 1) / 3] + "ANT500 elements");
|
||||
} else {
|
||||
text_result_ant500.set("-");
|
||||
}
|
||||
|
@ -106,6 +106,8 @@ WhipCalcView::WhipCalcView(
|
|||
button_exit.on_select = [this, &nav](Button&) {
|
||||
nav.pop();
|
||||
};
|
||||
|
||||
update_result();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue