File tree 2 files changed +2
-2
lines changed
libraries/SoftwareSerial/src
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class UartClass : public HardwareSerial
164
164
inline size_t write (unsigned int n) { return write ((uint8_t )n); }
165
165
inline size_t write (int n) { return write ((uint8_t )n); }
166
166
using Print::write; // pull in write(str) and write(buf, size) from Print
167
- operator bool () { return true ; }
167
+ explicit operator bool () { return true ; }
168
168
169
169
// Interrupt handlers - Not intended to be called externally
170
170
inline void _rx_complete_irq (void );
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class SoftwareSerial : public Stream
103
103
virtual int read ();
104
104
virtual int available ();
105
105
virtual void flush ();
106
- operator bool () { return true ; }
106
+ explicit operator bool () { return true ; }
107
107
108
108
using Print::write;
109
109
You can’t perform that action at this time.
0 commit comments