Digital mode for waveform widget, 2.4GHZ WLAN channels in jammer

This commit is contained in:
furrtek 2017-01-17 07:00:42 +00:00
parent b10c88e271
commit 368f0f7fb0
10 changed files with 136 additions and 47 deletions

View file

@ -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();
}
}