Changeset View
Changeset View
Standalone View
Standalone View
src/atcore.cpp
Show First 20 Lines • Show All 609 Lines • ▼ Show 20 Line(s) | 609 | case AtCore::IMPERIAL: | |||
---|---|---|---|---|---|
610 | pushCommand(GCode::toCommand(GCode::G20)); | 610 | pushCommand(GCode::toCommand(GCode::G20)); | ||
611 | break; | 611 | break; | ||
612 | } | 612 | } | ||
613 | } | 613 | } | ||
614 | QStringList AtCore::portSpeeds() const | 614 | QStringList AtCore::portSpeeds() const | ||
615 | { | 615 | { | ||
616 | return serial()->validBaudRates(); | 616 | return serial()->validBaudRates(); | ||
617 | } | 617 | } | ||
618 | | ||||
619 | void AtCore::setIdleHold(uint delay) | ||||
620 | { | ||||
621 | if (delay != 0) { | ||||
622 | pushCommand(GCode::toCommand(GCode::M84, QString::number(delay))); | ||||
623 | } else { | ||||
624 | pushCommand(GCode::toCommand(GCode::M84)); | ||||
625 | } | ||||
626 | } |