* Enqueue with Serial Echo * Return true if the command was consumed */
| 123 | * Return true if the command was consumed |
| 124 | */ |
| 125 | bool GCodeQueue::enqueue_one(const char * const cmd) { |
| 126 | //SERIAL_ECHOLNPGM("enqueue_one(\"", cmd, "\")"); |
| 127 | |
| 128 | if (*cmd == 0 || ISEOL(*cmd)) return true; |
| 129 | |
| 130 | if (ring_buffer.enqueue(cmd)) { |
| 131 | SERIAL_ECHO_MSG(STR_ENQUEUEING, cmd, "\""); |
| 132 | return true; |
| 133 | } |
| 134 | return false; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Process the next "immediate" command from PROGMEM. |
no test coverage detected