mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-06 08:34:58 -04:00
Cleanup
This commit is contained in:
parent
a4ecc0d6f3
commit
59e1836975
5 changed files with 32 additions and 26 deletions
20
Utilities.h
20
Utilities.h
|
@ -49,6 +49,8 @@ uint8_t eeprom_read(uint32_t mapped_addr);
|
|||
|
||||
#if HAS_DISPLAY == true
|
||||
#include "Display.h"
|
||||
#else
|
||||
void display_unblank() {}
|
||||
#endif
|
||||
|
||||
#if HAS_BLUETOOTH == true || HAS_BLE == true
|
||||
|
@ -1439,14 +1441,16 @@ void da_conf_save(uint8_t dadr) {
|
|||
}
|
||||
|
||||
void db_conf_save(uint8_t val) {
|
||||
if (val == 0x00) {
|
||||
display_blanking_enabled = false;
|
||||
} else {
|
||||
display_blanking_enabled = true;
|
||||
display_blanking_timeout = val*1000;
|
||||
}
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_BSET), CONF_OK_BYTE);
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_DBLK), val);
|
||||
#if HAS_DISPLAY
|
||||
if (val == 0x00) {
|
||||
display_blanking_enabled = false;
|
||||
} else {
|
||||
display_blanking_enabled = true;
|
||||
display_blanking_timeout = val*1000;
|
||||
}
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_BSET), CONF_OK_BYTE);
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_DBLK), val);
|
||||
#endif
|
||||
}
|
||||
|
||||
void np_int_conf_save(uint8_t p_int) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue