X2D lib first commit
Diff: X2D.h
- Revision:
- 15:2f74266340ac
- Parent:
- 13:345e4251cf25
- Child:
- 16:fc4796efd10b
--- a/X2D.h Sun Dec 01 14:43:45 2019 +0000 +++ b/X2D.h Sat Dec 14 08:31:18 2019 +0000 @@ -3,7 +3,7 @@ extern Serial pc; #define __DEBUG__ -#define Level 3 +#define Level 2 #define DBG(x, ...) if (Level>=3) pc.printf("[DBG]"x"\r\n", ##__VA_ARGS__); #define WARN(x, ...) if (Level>=2) pc.printf("[WARN]"x"\r\n", ##__VA_ARGS__); #define ERR(x, ...) if (Level>=1) pc.printf("[ERR]"x"\r\n", ##__VA_ARGS__); @@ -26,17 +26,12 @@ }pulse_t; typedef struct { - char zone; - h_mode mode; -}info_t; - -typedef struct { char data[8]; int lenght; }msg_t; typedef struct { - unsigned char zone; + char name[32]; h_mode mode; bool fixed; unsigned char associated[3];