mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-13 03:43:37 +00:00
WIP PSI selector
This commit is contained in:
parent
1c81c7a8ba
commit
0523aabe91
@ -142,6 +142,7 @@ TPMSAppView::TPMSAppView(NavigationView&) {
|
||||
&field_rf_amp,
|
||||
&field_lna,
|
||||
&field_vga,
|
||||
&options_type,
|
||||
&recent_entries_view,
|
||||
});
|
||||
|
||||
@ -160,6 +161,17 @@ TPMSAppView::TPMSAppView(NavigationView&) {
|
||||
};
|
||||
options_band.set_by_value(target_frequency());
|
||||
|
||||
options_type.on_change = [this](size_t, int32_t i) {
|
||||
if (i == 0){
|
||||
// field_frequency.set_value(144390000);
|
||||
}
|
||||
if(i == 1){
|
||||
// field_frequency.set_value(144800000);
|
||||
}
|
||||
};
|
||||
|
||||
options_type.set_selected_index(0, true);
|
||||
|
||||
logger = std::make_unique<TPMSLogger>();
|
||||
if( logger ) {
|
||||
logger->append(u"tpms.txt");
|
||||
|
@ -138,6 +138,15 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
OptionsField options_type {
|
||||
{ 5 * 8, 0 * 16 },
|
||||
3,
|
||||
{
|
||||
{ "kPa", 0 },
|
||||
{ "PSI", 1 }
|
||||
}
|
||||
};
|
||||
|
||||
RFAmpField field_rf_amp {
|
||||
{ 13 * 8, 0 * 16 }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user