We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db4918 commit 2a6f0d4Copy full SHA for 2a6f0d4
libraries/WiFiS3/src/Modem.h
@@ -44,13 +44,9 @@ class ModemClass {
44
45
level from 0 defaul to 2 (maximum) */
46
47
- void debug(UART *u = nullptr, uint8_t level = 0) {
48
- if(u == nullptr) {
49
- _serial_debug = &Serial;
50
- }
51
- else {
52
- _serial_debug = u;
53
+ void debug(Stream &u, uint8_t level = 0) {
+ _serial_debug = &u;
+
54
if(level > 2) {
55
level = 2;
56
}
@@ -75,7 +71,7 @@ class ModemClass {
75
71
bool trim_results;
76
72
bool read_by_size;
77
73
bool read_by_size_finished(std::string &rx);
78
- UART * _serial_debug;
74
+ Stream * _serial_debug;
79
uint8_t _debug_level = 0;
80
};
81
0 commit comments