ERT: Add gain controls.

This commit is contained in:
Jared Boone 2016-07-25 16:06:09 -07:00
parent aaa0e389b9
commit 00f542e96b
2 changed files with 21 additions and 1 deletions

View file

@ -124,6 +124,9 @@ ERTAppView::ERTAppView(NavigationView&) {
baseband::run_image(portapack::spi_flash::image_tag_ert);
add_children({ {
&field_rf_amp,
&field_lna,
&field_vga,
&recent_entries_view,
} });
@ -154,7 +157,7 @@ void ERTAppView::focus() {
void ERTAppView::set_parent_rect(const Rect new_parent_rect) {
View::set_parent_rect(new_parent_rect);
recent_entries_view.set_parent_rect({ 0, 0, new_parent_rect.width(), new_parent_rect.height() });
recent_entries_view.set_parent_rect({ 0, header_height, new_parent_rect.width(), new_parent_rect.height() - header_height });
}
void ERTAppView::on_packet(const ert::Packet& packet) {