diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-09-23 18:13:42 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-23 18:13:42 (GMT) |
| commit | 8a2b86dc8376d915b664a301465f7a5ef675b66f (patch) | |
| tree | e9e5efad34e3ab0ed7e3651364ab09985b5c9bcb /src/components/motor/MotorController.cpp | |
| parent | 1c3c3c8db919c703bbd3f1be4ce9c6833237ea6f (diff) | |
| parent | 93d240a23b1071efd0ac4ecba986f98bc1dae2a4 (diff) | |
Merge pull request #664 from Riksu9000/disable_notif_only
Toggle notifications only, keep vibrations.
Diffstat (limited to 'src/components/motor/MotorController.cpp')
| -rw-r--r-- | src/components/motor/MotorController.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/components/motor/MotorController.cpp b/src/components/motor/MotorController.cpp index 42057a8..f596c71 100644 --- a/src/components/motor/MotorController.cpp +++ b/src/components/motor/MotorController.cpp @@ -9,9 +9,6 @@ APP_TIMER_DEF(longVibTimer); using namespace Pinetime::Controllers; -MotorController::MotorController(Controllers::Settings& settingsController) : settingsController {settingsController} { -} - void MotorController::Init() { nrf_gpio_cfg_output(PinMap::Motor); nrf_gpio_pin_set(PinMap::Motor); @@ -27,18 +24,11 @@ void MotorController::Ring(void* p_context) { } void MotorController::RunForDuration(uint8_t motorDuration) { - if (settingsController.GetVibrationStatus() == Controllers::Settings::Vibration::OFF) { - return; - } - nrf_gpio_pin_clear(PinMap::Motor); app_timer_start(shortVibTimer, APP_TIMER_TICKS(motorDuration), nullptr); } void MotorController::StartRinging() { - if (settingsController.GetVibrationStatus() == Controllers::Settings::Vibration::OFF) { - return; - } Ring(this); app_timer_start(longVibTimer, APP_TIMER_TICKS(1000), this); } |
