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 1
1
#include " Commander.h"
2
2
3
3
4
- Commander::Commander (HardwareSerial & serial){
4
+ Commander::Commander (Stream & serial){
5
5
com_port = &serial;
6
6
}
7
7
Commander::Commander (){
@@ -430,4 +430,4 @@ void Commander::printVerbose(const __FlashStringHelper *message){
430
430
}
431
431
void Commander::printError (){
432
432
print (F (" err" ));
433
- }
433
+ }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Commander
39
39
*
40
40
* @param serial - Serial com port instance
41
41
*/
42
- Commander (HardwareSerial &serial);
42
+ Commander (Stream &serial);
43
43
Commander ();
44
44
45
45
/* *
@@ -90,7 +90,7 @@ class Commander
90
90
uint8_t decimal_places = 3 ; // !< number of decimal places to be used when displaying numbers
91
91
92
92
// monitoring functions
93
- HardwareSerial * com_port = nullptr ; // !< Serial terminal variable if provided
93
+ Stream * com_port = nullptr ; // !< Serial terminal variable if provided
94
94
95
95
/* *
96
96
*
You can’t perform that action at this time.
0 commit comments