1
0
Fork 0

Re-Enable BLE

This commit is contained in:
JF 2020-03-02 20:13:42 +01:00
parent 64014f03ee
commit 6b5b0112e3
2 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ void SystemTask::Work() {
NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::Watchdog::ResetReasonToString(watchdog.ResetReason())); NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::Watchdog::ResetReasonToString(watchdog.ResetReason()));
APP_GPIOTE_INIT(2); APP_GPIOTE_INIT(2);
bool erase_bonds=false; 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(); spi.Init();
lcd.Init(); lcd.Init();

View file

@ -142,10 +142,10 @@ int main(void) {
systemTask.reset(new Pinetime::System::SystemTask(spi, lcd, touchPanel, lvgl, batteryController, bleController, dateTimeController)); systemTask.reset(new Pinetime::System::SystemTask(spi, lcd, touchPanel, lvgl, batteryController, bleController, dateTimeController));
systemTask->Start(); systemTask->Start();
// ble_manager_init(); ble_manager_init();
// ble_manager_set_new_time_callback(OnNewTime); ble_manager_set_new_time_callback(OnNewTime);
// ble_manager_set_ble_connection_callback(OnBleConnection); ble_manager_set_ble_connection_callback(OnBleConnection);
// ble_manager_set_ble_disconnection_callback(OnBleDisconnection); ble_manager_set_ble_disconnection_callback(OnBleDisconnection);
vTaskStartScheduler(); vTaskStartScheduler();