[FL-2441] BLE add Power state, fix double connection (#1238)
* battery service: add power state charachteristic * bt: update power state on charging / discharging events * ble config: support only one connection * bt: always update flow control characteristic * bt: fix power state update * bt: simplify updating power state * bt: don't update flow control charachteristic
This commit is contained in:
@@ -91,6 +91,9 @@ bool furi_hal_bt_change_app(FuriHalBtProfile profile, GapEventCallback event_cb,
|
||||
*/
|
||||
void furi_hal_bt_update_battery_level(uint8_t battery_level);
|
||||
|
||||
/** Update battery power state */
|
||||
void furi_hal_bt_update_power_state();
|
||||
|
||||
/** Checks if BLE state is active
|
||||
*
|
||||
* @return true if device is connected or advertising, false otherwise
|
||||
|
Reference in New Issue
Block a user