Files @ 9ae5559ab974
Branch filter:

Location: therm-ng/inc/system/error.h - annotation

matthewreed
Added current setpoint number to heating screens, and a few fixes for floating point numbers and such.
#ifndef ERROR_H
#define ERROR_H

// Each error message has an enum entry
// If adding errors, remember to define a message for each in error.c
enum error_number
{
    ERR_INFO = 0,
    ERR_GENERIC,
    ERR_PERIPHINIT,
    ERR_COMMANDTIMEOUT,
};

void error_assert(const uint8_t errno);
void error_assert_info(const uint8_t errno, const char* details);
uint8_t error_check(const uint8_t errno);
uint8_t error_occurred(void);
uint8_t error_count(void);

#endif