sim: NimbleController: add stubs for new En/DisableRadio() functions
New functions added in
ef44b763d9
for the airplane-mode
This commit is contained in:
parent
cdd66256ce
commit
2b8b4edba3
|
@ -376,6 +376,23 @@ void NimbleController::NotifyBatteryLevel(uint8_t level) {
|
|||
// }
|
||||
}
|
||||
|
||||
void NimbleController::EnableRadio() {
|
||||
// bleController.EnableRadio();
|
||||
// bleController.Disconnect();
|
||||
// fastAdvCount = 0;
|
||||
// StartAdvertising();
|
||||
}
|
||||
|
||||
void NimbleController::DisableRadio() {
|
||||
// bleController.DisableRadio();
|
||||
// if (bleController.IsConnected()) {
|
||||
// ble_gap_terminate(connectionHandle, BLE_ERR_REM_USER_CONN_TERM);
|
||||
// bleController.Disconnect();
|
||||
// } else {
|
||||
// ble_gap_adv_stop();
|
||||
// }
|
||||
}
|
||||
|
||||
//void NimbleController::PersistBond(struct ble_gap_conn_desc& desc) {
|
||||
// union ble_store_key key;
|
||||
// union ble_store_value our_sec, peer_sec, peer_cccd_set[MYNEWT_VAL(BLE_STORE_MAX_CCCDS)] = {0};
|
||||
|
|
|
@ -89,6 +89,9 @@ namespace Pinetime {
|
|||
fastAdvCount = 0;
|
||||
}
|
||||
|
||||
void EnableRadio();
|
||||
void DisableRadio();
|
||||
|
||||
private:
|
||||
// void PersistBond(struct ble_gap_conn_desc& desc);
|
||||
// void RestoreBond();
|
||||
|
|
Loading…
Reference in New Issue
Block a user