Revision 15fa09f7
Made errors less noisy
If it can't connect to a tool, it will print an error once, and then
print another message when it is able to reconnect.
mainbox/tool.h | ||
---|---|---|
9 | 9 |
}; |
10 | 10 |
|
11 | 11 |
struct tool_t { |
12 |
int address; |
|
13 | 12 |
const char *name; |
13 |
int address; |
|
14 |
int connected; |
|
14 | 15 |
enum toolstate_t state; |
15 | 16 |
unsigned int user; |
16 | 17 |
}; |
17 | 18 |
|
19 |
#define TOOL_DECL(name, addr) {name, addr, 1, TS_INIT, 0} |
|
20 |
|
|
18 | 21 |
int tool_init_mb(const char *device); |
19 | 22 |
void tool_close_mb(); |
20 | 23 |
void tool_request_disable(struct tool_t *tool); |
Also available in: Unified diff