diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-02-14 13:42:42 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-02-14 13:42:42 (GMT) |
| commit | f81ff98c308e437139468301ed5198b322c2f4ec (patch) | |
| tree | 4e2334bc3a8f7f434890a4cb439703b569572c10 /src/main.cpp | |
| parent | 01e194426d51ffb1a6e9e3162567f29c2a84154d (diff) | |
| parent | e62f8734befca5e40496f354aa05ea20602a8bbe (diff) | |
Merge branch 'develop' of github.com:JF002/Pinetime into develop
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4f8ed6a..fe177d0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,6 +30,7 @@ #include "components/battery/BatteryController.h" #include "components/ble/BleController.h" #include "components/ble/NotificationManager.h" +#include "components/motor/MotorController.h" #include "components/datetime/DateTimeController.h" #include "displayapp/DisplayApp.h" #include "displayapp/LittleVgl.h" @@ -98,7 +99,7 @@ void ble_manager_set_ble_disconnection_callback(void (*disconnection)()); static constexpr uint8_t pinTouchIrq = 28; std::unique_ptr<Pinetime::System::SystemTask> systemTask; -Pinetime::Controllers::NotificationManager notificationManager; +Pinetime::Controllers::MotorController motorController; void nrfx_gpiote_evt_handler(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action) { if(pin == pinTouchIrq) { @@ -232,7 +233,7 @@ void nimble_port_ll_task_func(void *args) { ble_ll_task(args); } } -int countT2 = 0; + int main(void) { logger.Init(); @@ -241,7 +242,7 @@ int main(void) { debounceTimer = xTimerCreate ("debounceTimer", 200, pdFALSE, (void *) 0, DebounceTimerCallback); systemTask.reset(new Pinetime::System::SystemTask(spi, lcd, spiNorFlash, twiMaster, touchPanel, lvgl, batteryController, bleController, - dateTimeController, notificationManager, heartRateSensor)); + dateTimeController, motorController, heartRateSensor)); systemTask->Start(); nimble_port_init(); |
