diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp index 5a3d9ca6..e15846da 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/SystemTask/SystemTask.cpp @@ -34,7 +34,7 @@ void SystemTask::Work() { NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::Watchdog::ResetReasonToString(watchdog.ResetReason())); APP_GPIOTE_INIT(2); bool erase_bonds=false; -// nrf_sdh_freertos_init(ble_manager_start_advertising, &erase_bonds); + nrf_sdh_freertos_init(ble_manager_start_advertising, &erase_bonds); spi.Init(); lcd.Init(); diff --git a/src/main.cpp b/src/main.cpp index 72db6ea8..32ceb843 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -142,10 +142,10 @@ int main(void) { systemTask.reset(new Pinetime::System::SystemTask(spi, lcd, touchPanel, lvgl, batteryController, bleController, dateTimeController)); systemTask->Start(); -// ble_manager_init(); -// ble_manager_set_new_time_callback(OnNewTime); -// ble_manager_set_ble_connection_callback(OnBleConnection); -// ble_manager_set_ble_disconnection_callback(OnBleDisconnection); + ble_manager_init(); + ble_manager_set_new_time_callback(OnNewTime); + ble_manager_set_ble_connection_callback(OnBleConnection); + ble_manager_set_ble_disconnection_callback(OnBleDisconnection); vTaskStartScheduler();