Microphone tx is mostly working, Voice activation, PTT, CTCSS...

Transmit bandwidth bugfix
TX LED is now only lit when using rf amp
VU-meter widget
Added gain parameter for baseband audio TX
This commit is contained in:
furrtek 2017-03-13 04:09:21 +00:00
parent 71999f216f
commit 69b0ef9a40
32 changed files with 523 additions and 194 deletions

View file

@ -189,11 +189,11 @@ bool MenuView::set_highlighted(int32_t new_value) {
if (new_value >= item_count)
new_value = item_count - 1;
if ((new_value > offset_) && ((new_value - offset_) >= displayed_max_)) {
if (((uint32_t)new_value > offset_) && ((new_value - offset_) >= displayed_max_)) {
// Shift MenuView up
offset_ = new_value - displayed_max_ + 1;
update_items();
} else if (new_value < offset_) {
} else if ((uint32_t)new_value < offset_) {
// Shift MenuView down
offset_ = new_value;
update_items();