|
1 | 1 | /** |
2 | 2 | * SerialCommand - A Wiring/Arduino library to tokenize and parse commands |
3 | 3 | * received over a serial port. |
4 | | - * |
| 4 | + * |
5 | 5 | * Copyright (C) 2012 Stefan Rado |
6 | 6 | * Copyright (C) 2011 Steven Cogswell <steven.cogswell@gmail.com> |
7 | 7 | * http://husks.wordpress.com |
8 | | - * |
| 8 | + * |
9 | 9 | * Version 20120522 |
10 | | - * |
| 10 | + * |
11 | 11 | * This library is free software: you can redistribute it and/or modify |
12 | 12 | * it under the terms of the GNU Lesser General Public License as published by |
13 | 13 | * the Free Software Foundation, either version 3 of the License, or |
14 | 14 | * (at your option) any later version. |
15 | | - * |
| 15 | + * |
16 | 16 | * This library is distributed in the hope that it will be useful, |
17 | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | 19 | * GNU Lesser General Public License for more details. |
20 | | - * |
| 20 | + * |
21 | 21 | * You should have received a copy of the GNU General Public License |
22 | 22 | * along with this library. If not, see <http://www.gnu.org/licenses/>. |
23 | 23 | */ |
@@ -73,7 +73,7 @@ void SerialCommand::setDefaultHandler(void (*function)(const char *)) { |
73 | 73 | void SerialCommand::readSerial() { |
74 | 74 | while (Serial.available() > 0) { |
75 | 75 | char inChar = Serial.read(); // Read single available character, there may be more waiting |
76 | | - #ifdef SERIALCOMMAND_DEBUG |
| 76 | + #if defined SERIALCOMMAND_DEBUG || defined SERIALCOMMAND_ECHO |
77 | 77 | Serial.print(inChar); // Echo back to serial stream |
78 | 78 | #endif |
79 | 79 |
|
|
0 commit comments