File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#include " Commander.h"
22
33
4- Commander::Commander (HardwareSerial & serial){
4+ Commander::Commander (Stream & serial){
55 com_port = &serial;
66}
77Commander::Commander (){
@@ -430,4 +430,4 @@ void Commander::printVerbose(const __FlashStringHelper *message){
430430}
431431void Commander::printError (){
432432 print (F (" err" ));
433- }
433+ }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Commander
3939 *
4040 * @param serial - Serial com port instance
4141 */
42- Commander (HardwareSerial &serial);
42+ Commander (Stream &serial);
4343 Commander ();
4444
4545 /* *
@@ -90,7 +90,7 @@ class Commander
9090 uint8_t decimal_places = 3 ; // !< number of decimal places to be used when displaying numbers
9191
9292 // monitoring functions
93- HardwareSerial * com_port = nullptr ; // !< Serial terminal variable if provided
93+ Stream * com_port = nullptr ; // !< Serial terminal variable if provided
9494
9595 /* *
9696 *
You can’t perform that action at this time.
0 commit comments