Skip to content

Conversation

@anpar
Copy link
Member

@anpar anpar commented Apr 23, 2020

No description provided.

@anpar anpar requested a review from cassiersg May 21, 2020 08:16
if (elapsedTime > pdMS_TO_TICKS(BPM_CHECK_PERIOD_MS)) {
uint8_t measuredBPM = ((uint8_t) (cycleCount - lastCycleCount)) / BPM_CHECK_PERIOD_PER_MIN;
DEBUG_PRINT("Measured BPM: %u", measuredBPM);
if (ABS(measuredBPM - bpm) > BPM_TOL) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should cast measuredBPM & bpm to int8_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants