Always send M105 on connection in case firmware is silent. #3767

This commit is contained in:
Alessandro Ranellucci 2017-03-26 21:07:46 +02:00
parent 35758819f2
commit fc5fec1315

View File

@ -106,6 +106,9 @@ GCodeSender::connect(std::string devname, unsigned int baud_rate)
boost::thread t(boost::bind(&asio::io_service::run, &this->io)); boost::thread t(boost::bind(&asio::io_service::run, &this->io));
this->background_thread.swap(t); this->background_thread.swap(t);
// always send a M105 to check for connection because firmware might be silent on connect
this->send("M105", true);
return true; return true;
} }