SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
Used for debugging. More...
#include <debug.h>
Public Member Functions | |
void | init (int period) |
Initialize the watchdog at the period given. | |
void | set (int l, const char *str) |
Record the current line number and function name. Also feeds the watchdog. | |
void | print (void) |
Prints the most recently recorded value. | |
void | write (void) |
Actually write the recorded value to flash. | |
bool | read (void) |
Read the recorded value from flash. | |
void | pause (void) |
Pause the watchdog. You'll want to do this before sleeping. | |
void | resume (void) |
Re-enable the watchdog. You should do this right after waking from sleep. | |
Used for debugging.
This class allows us to find where the program halted by saving the line number and function name into non-volatile memory.