mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-02 14:46:16 -04:00
Implemented Bluetooth power and pairing state control
This commit is contained in:
parent
b6a26b3226
commit
8b7e324a5a
6 changed files with 53 additions and 36 deletions
|
@ -915,6 +915,14 @@ bool eeprom_checksum_valid() {
|
|||
return checksum_valid;
|
||||
}
|
||||
|
||||
void bt_conf_save(bool is_enabled) {
|
||||
if (is_enabled) {
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_BT), BT_ENABLE_BYTE);
|
||||
} else {
|
||||
eeprom_update(eeprom_addr(ADDR_CONF_BT), 0x00);
|
||||
}
|
||||
}
|
||||
|
||||
bool eeprom_have_conf() {
|
||||
if (EEPROM.read(eeprom_addr(ADDR_CONF_OK)) == CONF_OK_BYTE) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue