Skip to content

Commit 0cfad35

Browse files
authored
Queued Channel characters were ignored (#1665)
1 parent 826750e commit 0cfad35

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

FluidNC/src/Channel.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,17 @@ Error Channel::pollLine(char* line) {
223223
if (ch < 0) {
224224
break;
225225
}
226-
_active = true;
227-
if (realtimeOkay(ch) && is_realtime_command(ch)) {
228-
handleRealtimeCharacter((uint8_t)ch);
229-
continue;
230-
}
231-
if (!line) {
232-
_queue.push(ch);
233-
continue;
234-
}
235-
// Fall through if line is non-null and it is not a realtime character
236226
}
227+
_active = true;
228+
if (realtimeOkay(ch) && is_realtime_command(ch)) {
229+
handleRealtimeCharacter((uint8_t)ch);
230+
continue;
231+
}
232+
if (!line) {
233+
_queue.push(ch);
234+
continue;
235+
}
236+
// Fall through if line is non-null and it is not a realtime character
237237

238238
if (lineComplete(line, ch)) {
239239
return Error::Ok;

0 commit comments

Comments
 (0)