Project

General

Profile

Revision 15fa09f7

ID15fa09f75895f37d00e181f55b105bb76d5dbbdc
Parent 7bca325d
Child a96c5547

Added by Thomas Mullins over 3 years ago

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.

View differences:

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