Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/drivers/MarlinDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MarlinDriver::MarlinDriver(Server& server, const std::string& serialPortPath, co
checkTemperatureInterval_(2000),
checkConnection_(true),
checkTemperatureAttempt_(0),
maxCheckTemperatureAttempts_(2) {
maxCheckTemperatureAttempts_(45) {

/*//temperature parsing tests
readCode(*new string("T:19.1 /0.0 B:0.0 /0.0 @:0 B@:0"));
Expand Down
8 changes: 0 additions & 8 deletions src/drivers/Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,6 @@ Serial::SET_SPEED_RESULT Serial::setSpeed(int speed) {
if (ioctl(portFd_, TCSETS2, &options) < 0) return SSR_IO_SET;
#endif

//toggle DTR
if (ioctl(portFd_, TIOCMGET, &modemBits) < 0) return SSR_IO_MGET;
modemBits |= TIOCM_DTR;
if (ioctl(portFd_, TIOCMSET, &modemBits) < 0) return SSR_IO_MSET1;
usleep(100 * 1000);
modemBits &=~TIOCM_DTR;
if (ioctl(portFd_, TIOCMSET, &modemBits) < 0) return SSR_IO_MSET2;

return SSR_OK;
}

Expand Down