Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/repetierplugin.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 46 | { | |||
---|---|---|---|---|---|
55 | // /60.0 - target temperature | 55 | // /60.0 - target temperature | ||
56 | core()->temperature().setBedTargetTemperature(list[3].mid(1).toFloat()); | 56 | core()->temperature().setBedTargetTemperature(list[3].mid(1).toFloat()); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | void RepetierPlugin::validateCommand(const QString &lastMessage) | 59 | void RepetierPlugin::validateCommand(const QString &lastMessage) | ||
60 | { | 60 | { | ||
61 | if (lastMessage.contains(_extruderTemp) || lastMessage.contains(_bedTemp)) { | 61 | if (lastMessage.contains(_extruderTemp) || lastMessage.contains(_bedTemp)) { | ||
62 | extractTemp(lastMessage); | 62 | extractTemp(lastMessage); | ||
63 | emit readyForCommand(); | ||||
63 | } else if (lastMessage.contains(_ok) || lastMessage.contains(_wait)) { | 64 | } else if (lastMessage.contains(_ok) || lastMessage.contains(_wait)) { | ||
64 | emit readyForCommand(); | 65 | emit readyForCommand(); | ||
65 | } | 66 | } | ||
66 | } | 67 | } | ||
67 | 68 | | |||
68 | QByteArray RepetierPlugin::translate(const QString &command) | 69 | QByteArray RepetierPlugin::translate(const QString &command) | ||
69 | { | 70 | { | ||
70 | return command.toLocal8Bit(); | 71 | return command.toLocal8Bit(); | ||
71 | } | 72 | } |