summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-08-14 19:54:00 (GMT)
committerJean-François Milants <jf@codingfield.com>2021-08-14 19:54:00 (GMT)
commit0eeed5ac33a655367a3da9fb93ddc515970cd16a (patch)
tree913f71a229336809e2472321a1e21b4c438b295d /src/components/motor/MotorController.h
parentdec4bab33496527e43850742a4b3dafd753eab83 (diff)
parentf9319dfb91a38c773b4af221f2fd0d975cf061f2 (diff)
Merge branch 'call-improvements' of https://github.com/Riksu9000/InfiniTime into Riksu9000-call-improvements
# Conflicts: # src/displayapp/screens/Metronome.cpp
Diffstat (limited to 'src/components/motor/MotorController.h')
-rw-r--r--src/components/motor/MotorController.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.h b/src/components/motor/MotorController.h
index df61af7..d2c9fe5 100644
--- a/src/components/motor/MotorController.h
+++ b/src/components/motor/MotorController.h
@@ -12,11 +12,14 @@ namespace Pinetime {
public:
MotorController(Controllers::Settings& settingsController);
void Init();
- void SetDuration(uint8_t motorDuration);
+ void RunForDuration(uint8_t motorDuration);
+ void StartRinging();
+ static void StopRinging();
private:
+ static void Ring(void* p_context);
Controllers::Settings& settingsController;
- static void vibrate(void* p_context);
+ static void StopMotor(void* p_context);
};
}
}