add heart rate measurments in the background
This commit is contained in:
parent
d376a856b7
commit
a2edd931ec
|
@ -7,6 +7,8 @@
|
|||
|
||||
#define DURATION_UNTIL_BACKGROUND_MEASURMENT_IS_STOPPED 30 * 1000 // 30 seconds assuming 1 Hz
|
||||
|
||||
#define DURATION_BETWEEN_BACKGROUND_MEASUREMENTS 5 * 60 * 1000 // 5 Minutes assuming 1 Hz
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
class Hrs3300;
|
||||
|
@ -43,6 +45,10 @@ namespace Pinetime {
|
|||
bool IsContinuosModeActivated();
|
||||
bool IsBackgroundMeasurementActivated();
|
||||
|
||||
void HandleBackgroundWaiting();
|
||||
void HandleSensorData();
|
||||
int CurrentTaskDelay();
|
||||
|
||||
TaskHandle_t taskHandle;
|
||||
QueueHandle_t messageQueue;
|
||||
States state = States::Running;
|
||||
|
|
Loading…
Reference in a new issue