Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.cpp
Show First 20 Lines • Show All 525 Lines • ▼ Show 20 Line(s) | 521 | { | |||
---|---|---|---|---|---|
526 | AtCore::setState(AtCore::STATES::FINISHEDPRINT); | 526 | AtCore::setState(AtCore::STATES::FINISHEDPRINT); | ||
527 | AtCore::setState(AtCore::STATES::IDLE); | 527 | AtCore::setState(AtCore::STATES::IDLE); | ||
528 | } | 528 | } | ||
529 | 529 | | |||
530 | void AtCore::requestFirmware() | 530 | void AtCore::requestFirmware() | ||
531 | { | 531 | { | ||
532 | if (serialInitialized()) { | 532 | if (serialInitialized()) { | ||
533 | //ensure M115 is sent on cold connect. | 533 | //ensure M115 is sent on cold connect. | ||
534 | d->commandQueue.clear(); | ||||
534 | d->ready = true; | 535 | d->ready = true; | ||
535 | qCDebug(ATCORE_CORE) << "Sending " << GCode::description(GCode::MCommands::M115); | 536 | qCDebug(ATCORE_CORE) << "Sending " << GCode::description(GCode::MCommands::M115); | ||
536 | pushCommand(GCode::toCommand(GCode::MCommands::M115)); | 537 | pushCommand(GCode::toCommand(GCode::MCommands::M115)); | ||
537 | } else { | 538 | } else { | ||
538 | qCDebug(ATCORE_CORE) << "There is no open device to send commands"; | 539 | qCDebug(ATCORE_CORE) << "There is no open device to send commands"; | ||
539 | } | 540 | } | ||
540 | } | 541 | } | ||
541 | 542 | | |||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |