mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-04 22:30:39 +08:00
Always send M105 on connection in case firmware is silent. #3767
This commit is contained in:
parent
35758819f2
commit
fc5fec1315
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user