mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-08 17:55:00 -04:00
Added options for enabling CLKOUT.
- CLKOUT can be enabled in Radio settings and status bar. - Fixed a typo(I believe) in ui_navigation.
This commit is contained in:
parent
55783a60f5
commit
b15b781039
8 changed files with 80 additions and 9 deletions
|
@ -144,6 +144,7 @@ SetRadioView::SetRadioView(
|
|||
}
|
||||
|
||||
add_children({
|
||||
&check_clkout,
|
||||
&labels_bias,
|
||||
&check_bias,
|
||||
&button_done,
|
||||
|
@ -156,6 +157,14 @@ SetRadioView::SetRadioView(
|
|||
|
||||
form_init(model);
|
||||
|
||||
check_clkout.set_value(portapack::persistent_memory::clkout_enabled());
|
||||
check_clkout.on_select = [this](Checkbox&, bool v) {
|
||||
clock_manager.enable_clock_output(v);
|
||||
portapack::persistent_memory::set_clkout_enabled(v);
|
||||
StatusRefreshMessage message { };
|
||||
EventDispatcher::send_message(message);
|
||||
};
|
||||
|
||||
check_bias.set_value(portapack::get_antenna_bias());
|
||||
check_bias.on_select = [this](Checkbox&, bool v) {
|
||||
portapack::set_antenna_bias(v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue