File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
libraries/SoftwareSerial/src Expand file tree Collapse file tree 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
164164 inline size_t write (unsigned int n) { return write ((uint8_t )n); }
165165 inline size_t write (int n) { return write ((uint8_t )n); }
166166 using Print::write; // pull in write(str) and write(buf, size) from Print
167- operator bool () { return true ; }
167+ explicit operator bool () { return true ; }
168168
169169 // Interrupt handlers - Not intended to be called externally
170170 inline void _rx_complete_irq (void );
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class SoftwareSerial : public Stream
103103 virtual int read ();
104104 virtual int available ();
105105 virtual void flush ();
106- operator bool () { return true ; }
106+ explicit operator bool () { return true ; }
107107
108108 using Print::write;
109109
You can’t perform that action at this time.
0 commit comments