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