by alexrj: Fixes in GCodeSender to reset the connection after it breaks.

by alexrj: Fix in mouse handling of 2DBed.
by alexrj: ClipperUtils for ExPolygon vs. ExPolygon
This commit is contained in:
bubnikv 2016-10-24 14:07:38 +02:00
parent cc8b7390ee
commit 250ff451ba
4 changed files with 39 additions and 2 deletions

View file

@ -69,7 +69,11 @@ GCodeSender::connect(std::string devname, unsigned int baud_rate)
this->set_baud_rate(baud_rate);
this->open = true;
this->reset();
// a reset firmware expect line numbers to start again from 1
this->sent = 0;
this->last_sent.clear();
/* Initialize debugger */
#ifdef DEBUG_SERIAL
fs.open("serial.txt", std::fstream::out | std::fstream::trunc);