1#ifndef HUMIDISTAT_CONFIGPAR_H
2#define HUMIDISTAT_CONFIGPAR_H
7#define NUM_DIGITS WIDTH - 2
44 void adjust(int16_t delta)
const;
A class for storing references to variables of various types (uint8_t, uint16_t, or double).
uint8_t magnitude() const
Get magnitude (number of digits before the decimal separator) of variable.
char * asprint() const
Print "label: value" to string. Automatically allocates string on the heap. Make sure to delete it im...
void adjust(int16_t delta) const
Add delta to the variable.
struct ConfigPar::Var var
Var()
Default constructor, initializes with nullptr.
Var(uint8_t *par)
Constructor.