Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51822
Diff: Source/main.h
- Revision:
- 26:a577c4b69fe0
- Parent:
- 25:42163d650266
- Child:
- 27:bb7247a1704e
--- a/Source/main.h Mon Mar 25 15:24:15 2019 +0000 +++ b/Source/main.h Mon Apr 15 18:46:57 2019 +0000 @@ -16,9 +16,13 @@ #define PERIODIC_TICK_SEC 3 // update rtc and run check cap rate #define FAST_TICK_SEC 3 // update rtc and run check cap rate while in init and test mode +#define EOL_TICK_SEC 10 // update rtc and run check cap rate while in EOL mode #define CAP_THRESHOLD 50 // ajusts the sensitivity of the cap sensor. Lower value means it triggers more easily +#define EOL_TIMEOUT_DAYS 30 // number of days after package is open before unit goes into EOL mode. +#define EOL_MAX_USES 120 // number of uses after which the unit goes into EOL mode. + extern void process_cmd(char * cmd); //******************************************************************************