Several fixes to GCodeSender, including compilation on older OS X and DTR reset

This commit is contained in:
Alessandro Ranellucci 2015-11-19 13:17:52 +01:00
parent e50bbc0245
commit 21a5d6e137
4 changed files with 112 additions and 59 deletions

View file

@ -32,6 +32,8 @@ class GCodeSender : private boost::noncopyable {
std::vector<std::string> purge_log();
std::string getT() const;
std::string getB() const;
void set_DTR(bool on);
void reset();
private:
asio::io_service io;
@ -58,6 +60,7 @@ class GCodeSender : private boost::noncopyable {
void set_baud_rate(unsigned int baud_rate);
void set_error_status(bool e);
void do_send();
void do_send(const std::string &line);
void do_close();
void do_read();