add heart rate measurments in the background

This commit is contained in:
Patric Gruber 2023-03-31 10:00:56 +02:00
parent d376a856b7
commit a2edd931ec

View file

@ -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;