mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-26 00:06:00 -04:00
fix unused warning (#1970)
This commit is contained in:
parent
2ac36d2d0b
commit
986e37a3c9
1 changed files with 19 additions and 17 deletions
|
@ -172,6 +172,7 @@ void LevelView::on_statistics_update(const ChannelStatistics& statistics) {
|
||||||
}
|
}
|
||||||
// refresh sat
|
// refresh sat
|
||||||
uint8_t rx_sat = ((uint32_t)shared_memory.m4_performance_counter) * 100 / 127;
|
uint8_t rx_sat = ((uint32_t)shared_memory.m4_performance_counter) * 100 / 127;
|
||||||
|
if (last_rx_sat != rx_sat) {
|
||||||
last_rx_sat = rx_sat;
|
last_rx_sat = rx_sat;
|
||||||
freq_stats_rx.set("RxSat: " + to_string_dec_uint(rx_sat) + "%");
|
freq_stats_rx.set("RxSat: " + to_string_dec_uint(rx_sat) + "%");
|
||||||
uint8_t br = 0;
|
uint8_t br = 0;
|
||||||
|
@ -190,6 +191,7 @@ void LevelView::on_statistics_update(const ChannelStatistics& statistics) {
|
||||||
.foreground = {255, 255, 255},
|
.foreground = {255, 255, 255},
|
||||||
};
|
};
|
||||||
freq_stats_rx.set_style(&style_freq_stats_rx);
|
freq_stats_rx.set_style(&style_freq_stats_rx);
|
||||||
|
}
|
||||||
|
|
||||||
} /* on_statistic_updates */
|
} /* on_statistic_updates */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue