Re-Enable BLE
This commit is contained in:
parent
64014f03ee
commit
6b5b0112e3
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue