Changeset View
Changeset View
Standalone View
Standalone View
src/core/gcodecommands.cpp
Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Line(s) | 529 | case M221: | |||
---|---|---|---|---|---|
530 | code = value1.isEmpty() ? GCode::commandRequiresArgument.arg(QStringLiteral("M"), QString::number(gcode)) : code.append(QStringLiteral(" S%1").arg(value1)); | 530 | code = value1.isEmpty() ? GCode::commandRequiresArgument.arg(QStringLiteral("M"), QString::number(gcode)) : code.append(QStringLiteral(" S%1").arg(value1)); | ||
531 | return code; | 531 | return code; | ||
532 | 532 | | |||
533 | case M84: | 533 | case M84: | ||
534 | code = value1.isEmpty() ? code : code.append(QStringLiteral(" S%1").arg(value1)); | 534 | code = value1.isEmpty() ? code : code.append(QStringLiteral(" S%1").arg(value1)); | ||
535 | return code; | 535 | return code; | ||
536 | 536 | | |||
537 | case M104: | 537 | case M104: | ||
538 | code = value2.isEmpty() ? code.append(QStringLiteral(" S%1").arg(value1)) : code.append(QStringLiteral(" P%1 S%2").arg(value1).arg(value2)); | 538 | code = value2.isEmpty() ? code.append(QStringLiteral(" S%1").arg(value1)) : code.append(QStringLiteral(" P%1 S%2").arg(value1, value2)); | ||
539 | code = value1.isEmpty() ? GCode::commandRequiresArgument.arg(QStringLiteral("M"), QString::number(gcode)) : code ; | 539 | code = value1.isEmpty() ? GCode::commandRequiresArgument.arg(QStringLiteral("M"), QString::number(gcode)) : code ; | ||
540 | return code; | 540 | return code; | ||
541 | 541 | | |||
542 | case M106: | 542 | case M106: | ||
543 | code = value2.isEmpty() ? code.append(QStringLiteral(" S%1").arg(value1)) : code.append(QStringLiteral(" P%1 S%2").arg(value1).arg(value2)); | 543 | code = value2.isEmpty() ? code.append(QStringLiteral(" S%1").arg(value1)) : code.append(QStringLiteral(" P%1 S%2").arg(value1, value2)); | ||
544 | code = value1.isEmpty() ? QStringLiteral("M106") : code ; | 544 | code = value1.isEmpty() ? QStringLiteral("M106") : code ; | ||
545 | return code; | 545 | return code; | ||
546 | 546 | | |||
547 | /// For M26 values that end with %. AtCore will send the percentage verison of the command (optional in firmwares) | 547 | /// For M26 values that end with %. AtCore will send the percentage verison of the command (optional in firmwares) | ||
548 | /// For all values not ending in % it will start on that byte. This is the standard Sd resume supported by all reprap based firmware. | 548 | /// For all values not ending in % it will start on that byte. This is the standard Sd resume supported by all reprap based firmware. | ||
549 | case M26: { | 549 | case M26: { | ||
550 | if (!value1.isEmpty()) { | 550 | if (!value1.isEmpty()) { | ||
551 | if (value1.endsWith(QStringLiteral("%"))) { | 551 | if (value1.endsWith(QStringLiteral("%"))) { | ||
Show All 13 Lines |