Multiple fixes for building

This commit is contained in:
Sergey Kovalev
2020-12-29 01:12:04 +07:00
parent 6dab4375ba
commit c2df09a141
4 changed files with 21 additions and 14 deletions

View File

@ -32,13 +32,15 @@ namespace pt = boost::property_tree;
namespace Slic3r {
MKS::MKS(DynamicPrintConfig* config) :
host(config->opt_string("print_host")), console(config->opt_string("print_host"), "8080")
host(config->opt_string("print_host")), console_port("8080")
{}
const char* MKS::get_name() const { return "MKS"; }
bool MKS::test(wxString& msg) const
{
Utils::TCPConsole console(host, console_port);
console.enqueue_cmd("M105");
bool ret = console.run_queue();
@ -131,6 +133,8 @@ namespace Slic3r {
// TODO: Inspect reasons
std::this_thread::sleep_for(std::chrono::milliseconds(1500));
Utils::TCPConsole console(host, console_port);
console.enqueue_cmd(std::string("M23 ") + filename);
console.enqueue_cmd("M24");