diff options
author | JF <jf@codingfield.com> | 2020-02-23 16:14:03 +0100 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-02-23 16:14:03 +0100 |
commit | f07ffab4c1fa876e8da9a1bcc895ecf0dfa75acf (patch) | |
tree | ad7fc589d76988e1977d54926a8f776c4340b846 /src/SystemTask | |
parent | 02772b996fb26146cf38fc6deccff7f43a49dfd6 (diff) |
Re-enable BLE, BLE status on display and battery level on display.
Diffstat (limited to 'src/SystemTask')
-rw-r--r-- | src/SystemTask/SystemTask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SystemTask/SystemTask.cpp b/src/SystemTask/SystemTask.cpp index 642e36a2..91822fa2 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/SystemTask/SystemTask.cpp @@ -3,6 +3,8 @@ #include <drivers/Cst816s.h> #include <DisplayApp/LittleVgl.h> #include <hal/nrf_rtc.h> +#include <BLE/BleManager.h> +#include <softdevice/common/nrf_sdh_freertos.h> #include "SystemTask.h" #include "../main.h" using namespace Pinetime::System; @@ -16,7 +18,7 @@ SystemTask::SystemTask(Pinetime::Drivers::SpiMaster &spi, Pinetime::Drivers::St7 } void SystemTask::Start() { - if (pdPASS != xTaskCreate(SystemTask::Process, "MAIN", 256, this, 0, &taskHandle)) + if (pdPASS != xTaskCreate(SystemTask::Process, "MAIN", 350, this, 0, &taskHandle)) APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } @@ -29,7 +31,7 @@ void SystemTask::Process(void *instance) { void SystemTask::Work() { 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(); |