You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
334 B

  1. #pragma once
  2. #include "Positions.h"
  3. #define ALERT_BATTERY_LEVEL_1 1
  4. #define ALERT_BATTERY_LEVEL_2 2
  5. #define ALERT_RTC_FAILURE 3
  6. namespace alerts {
  7. extern uint8_t _alerts;
  8. uint8_t getTriggered(PositionEntryMetadata &metadata);
  9. inline void add(uint8_t mask) { _alerts |= mask; }
  10. void clear(PositionEntryMetadata &metadata);
  11. }