private:
Control &control;
unsigned addr;
- unsigned path;
+ unsigned char path;
+ unsigned char pending_path;
+ unsigned char pending_cmds;
bool dual;
+ bool on;
public:
Turnout(Control &, unsigned, bool =false);
- void set_path(unsigned);
+ void set_path(unsigned char);
unsigned get_address() const { return addr; }
- unsigned get_path() const { return path; }
+ unsigned char get_path() const { return path; }
private:
- void command(bool);
- void status_reply(const Reply &, bool);
- bool switch_timeout();
+ void command(unsigned char);
+ void command_reply(const Reply &, unsigned char);
+ void status_reply(const Reply &, unsigned char);
void turnout_event(unsigned, bool);
};