V1.5
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
#define ERROR_TIME_THRESH 150 // ms
|
||||
|
||||
typedef enum {
|
||||
typedef enum : uint16_t {
|
||||
SEK_OVERTEMP = 0x0,
|
||||
SEK_UNDERTEMP = 0x1,
|
||||
SEK_OVERVOLT = 0x2,
|
||||
@ -27,7 +27,7 @@ typedef enum {
|
||||
} SlaveErrorKind;
|
||||
|
||||
typedef struct {
|
||||
int error_sources;
|
||||
uint16_t error_sources;
|
||||
SlaveErrorKind data_kind;
|
||||
uint8_t data[4];
|
||||
uint32_t errors_since;
|
||||
@ -35,7 +35,7 @@ typedef struct {
|
||||
|
||||
extern SlaveErrorData error_data;
|
||||
|
||||
void set_error_source(int source);
|
||||
void clear_error_source(int source);
|
||||
void set_error_source(SlaveErrorKind source);
|
||||
void clear_error_source(SlaveErrorKind source);
|
||||
|
||||
#endif // INC_ERRORS_H
|
||||
|
||||
Reference in New Issue
Block a user