sim: NimbleController: add stubs for new En/DisableRadio() functions

New functions added in
ef44b763d9
for the airplane-mode
This commit is contained in:
Reinhold Gschweicher 2022-02-26 21:30:04 +01:00
parent cdd66256ce
commit 2b8b4edba3
2 changed files with 20 additions and 0 deletions

View File

@ -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) { //void NimbleController::PersistBond(struct ble_gap_conn_desc& desc) {
// union ble_store_key key; // union ble_store_key key;
// union ble_store_value our_sec, peer_sec, peer_cccd_set[MYNEWT_VAL(BLE_STORE_MAX_CCCDS)] = {0}; // union ble_store_value our_sec, peer_sec, peer_cccd_set[MYNEWT_VAL(BLE_STORE_MAX_CCCDS)] = {0};

View File

@ -89,6 +89,9 @@ namespace Pinetime {
fastAdvCount = 0; fastAdvCount = 0;
} }
void EnableRadio();
void DisableRadio();
private: private:
// void PersistBond(struct ble_gap_conn_desc& desc); // void PersistBond(struct ble_gap_conn_desc& desc);
// void RestoreBond(); // void RestoreBond();