Skip to content

Commit 2620270

Browse files
committed
Change shortcut for NEWLINE command
Change shortcut for NEWLINE command from N to C (N used for debug level NONE)
1 parent c8af05d commit 2620270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arduino_DebugUtils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void Arduino_DebugUtils::processDebugConfigCommand(){
169169
timestampOn();
170170
_debug_io_stream->println("TIMESTAMPS set to ON.");
171171
}
172-
} else if (strcmp(commandBuffer, "N") == 0 || strcmp(commandBuffer, "NEWLINE") == 0) {
172+
} else if (strcmp(commandBuffer, "C") == 0 || strcmp(commandBuffer, "NEWLINE") == 0) { // Shortcut is C for Carriage Return. N Already used for NONE
173173
if (_newline_on) {
174174
newlineOff();
175175
_debug_io_stream->println("NEWLINE set to OFF.");
@@ -186,7 +186,7 @@ void Arduino_DebugUtils::processDebugConfigCommand(){
186186
_debug_io_stream->println("DEBUG LABEL set to ON.");
187187
}
188188
} else {
189-
_debug_io_stream->println("Invalid command. Use VERBOSE, DEBUG, INFO, WARNING, ERROR, NONE or V,D,I,W,E,N. LABEL, TIMESTAMP, NEWLINE or L,T,N.");
189+
_debug_io_stream->println("Invalid command. Use V|VERBOSE, D|DEBUG, I|INFO, W|WARNING, E|ERROR, N|NONE or L|LABEL, T|TIMESTAMP, C|NEWLINE.");
190190
}
191191

192192
// Clear the buffer for the next command

0 commit comments

Comments
 (0)