Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
patricgruber committed Jan 24, 2025
1 parent 33efe44 commit fc8c1a5
Showing 1 changed file with 48 additions and 49 deletions.
97 changes: 48 additions & 49 deletions src/heartratetask/HeartRateTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,56 @@

#define DURATION_UNTIL_BACKGROUND_MEASUREMENT_IS_STOPPED pdMS_TO_TICKS(30 * 1000)


/*
*** Background Measurement deactivated ***
┌─────────────────────────┐ ┌─────────────────────────┐
│ ├───StartMeasurement───►│ │
│ ScreenOnAndStopped │ │ ScreenOnAndMeasuring │
│ │◄──StopMeasurement │ │
└──▲────────────────┬─────┘ └──▲──────────────────┬───┘
│ │ │ │
WakeUp GoToSleep WakeUp GoToSleep
│ │ │ │
┌──┴────────────────▼─────┐ ┌──┴──────────────────▼───┐
│ │ │ │
│ ScreenOffAndStopped │ │ ScreenOffAndWaiting │
│ │ │ │
└─────────────────────────┘ └─────────────────────────┘
*** Background Measurement activated ***
┌─────────────────────────┐ ┌─────────────────────────┐
│ ├───StartMeasurement───►│ │
│ ScreenOnAndStopped │ │ ScreenOnAndMeasuring │
│ │◄──StopMeasurement │ │
└──▲────────────────┬─────┘ └──▲──────────────────┬───┘
│ │ ┌───────┘ │
WakeUp GoToSleep │ WakeUp GoToSleep
│ │ │ │ │
┌──┴────────────────▼─────┐ │ ┌──┴──────────────────▼───┐
│ │ │ │ │
│ ScreenOffAndStopped │ │ │ ScreenOffAndMeasuring │
│ │ │ │ │
└─────────────────────────┘ │ └───▲──────────────────┬──┘
│ │ │
*** Background Measurement deactivated ***
┌─────────────────────────┐ ┌─────────────────────────┐
│ ├───StartMeasurement───►│ │
│ ScreenOnAndStopped │ │ ScreenOnAndMeasuring │
│ │◄──StopMeasurement │ │
└──▲────────────────┬─────┘ └──▲──────────────────┬───┘
│ │ │ │
WakeUp GoToSleep WakeUp GoToSleep
│ │ │ │
┌──┴────────────────▼─────┐ ┌──┴──────────────────▼───┐
│ │ │ │
│ ScreenOffAndStopped │ │ ScreenOffAndWaiting │
│ │ │ │
└─────────────────────────┘ └─────────────────────────┘
*** Background Measurement activated ***
┌─────────────────────────┐ ┌─────────────────────────┐
│ ├───StartMeasurement───►│ │
│ ScreenOnAndStopped │ │ ScreenOnAndMeasuring │
│ │◄──StopMeasurement │ │
└──▲────────────────┬─────┘ └──▲──────────────────┬───┘
│ │ ┌───────┘ │
WakeUp GoToSleep │ WakeUp GoToSleep
│ │ │ │ │
┌──┴────────────────▼─────┐ │ ┌──┴──────────────────▼───┐
│ │ │ │ │
│ ScreenOffAndStopped │ │ │ ScreenOffAndMeasuring │
│ │ │ │ │
└─────────────────────────┘ │ └───▲──────────────────┬──┘
│ │ │
│ Waited Got sensor
│ interval data
│ time │
│ │ │
WakeUp ┌───┴──────────────────▼──┐
│ │ │
└────┤ ScreenOffAndWaiting │
│ │
└─────────────────────────┘
│ interval data
│ time │
│ │ │
WakeUp ┌───┴──────────────────▼──┐
│ │ │
└────┤ ScreenOffAndWaiting │
│ │
└─────────────────────────┘
*/

namespace Pinetime {
Expand Down

0 comments on commit fc8c1a5

Please sign in to comment.