mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Fixing branch, moving block, adding quote
This commit is contained in:
parent
2b7b0d028a
commit
5551c6a676
@ -200,13 +200,16 @@ void set_serial_format(const serial_format_t new_value) {
|
|||||||
data->serial_format = new_value;
|
data->serial_format = new_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool show_gui_return_icon(){ // add return icon in touchscreen menue
|
|
||||||
return data->ui_config & (1 << 20);
|
|
||||||
|
|
||||||
// ui_config is an uint32_t var storing information bitwise
|
// ui_config is an uint32_t var storing information bitwise
|
||||||
// bits 0-2 store the backlight timer
|
// bits 0-2 store the backlight timer
|
||||||
// bits 4-19 (16 bits) store the clkout frequency
|
// bits 4-19 (16 bits) store the clkout frequency
|
||||||
// bits 21-31 store the different single bit configs depicted below
|
// bits 21-31 store the different single bit configs depicted below
|
||||||
|
// bit 20 store the display state of the gui return icon, hidden (0) or shown (1)
|
||||||
|
|
||||||
|
bool show_gui_return_icon(){ // add return icon in touchscreen menue
|
||||||
|
return data->ui_config & (1 << 20);
|
||||||
|
}
|
||||||
|
|
||||||
bool load_app_settings() { // load (last saved) app settings on startup of app
|
bool load_app_settings() { // load (last saved) app settings on startup of app
|
||||||
return data->ui_config & (1 << 21);
|
return data->ui_config & (1 << 21);
|
||||||
}
|
}
|
||||||
@ -261,6 +264,7 @@ uint32_t config_backlight_timer() {
|
|||||||
|
|
||||||
void set_gui_return_icon(bool v) {
|
void set_gui_return_icon(bool v) {
|
||||||
data->ui_config = (data->ui_config & ~(1 << 20)) | (v << 20);
|
data->ui_config = (data->ui_config & ~(1 << 20)) | (v << 20);
|
||||||
|
}
|
||||||
|
|
||||||
void set_load_app_settings(bool v) {
|
void set_load_app_settings(bool v) {
|
||||||
data->ui_config = (data->ui_config & ~(1 << 21)) | (v << 21);
|
data->ui_config = (data->ui_config & ~(1 << 21)) | (v << 21);
|
||||||
|
Loading…
Reference in New Issue
Block a user