MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / enqueue_one

Method enqueue_one

Marlin/src/gcode/queue.cpp:125–135  ·  view source on GitHub ↗

* Enqueue with Serial Echo * Return true if the command was consumed */

Source from the content-addressed store, hash-verified

123 * Return true if the command was consumed
124 */
125bool 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.

Callers 4

finishSDPrintingFunction · 0.80
btn_cancel_event_cbFunction · 0.80
wifi_gcode_execFunction · 0.80
get_wifi_commandsFunction · 0.80

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected