Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cores/arduino/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Client : public Stream {
virtual void flush() = 0;
virtual void stop() = 0;
virtual uint8_t connected() = 0;
virtual operator bool() = 0;
virtual explicit operator bool() = 0;
protected:
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
};
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class HardwareSerial : public Stream
inline size_t write(unsigned int n) { return write((uint8_t)n); }
inline size_t write(int n) { return write((uint8_t)n); }
using Print::write; // pull in write(str) and write(buf, size) from Print
operator bool() { return true; }
explicit constexpr operator bool() { return true; }

// Interrupt handlers - Not intended to be called externally
inline void _rx_complete_irq(void);
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/USBAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Serial_ : public Stream
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t*, size_t);
using Print::write; // pull in write(str) and write(buf, size) from Print
operator bool();
explicit operator bool();

volatile uint8_t _rx_buffer_head;
volatile uint8_t _rx_buffer_tail;
Expand Down
2 changes: 1 addition & 1 deletion libraries/SoftwareSerial/src/SoftwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class SoftwareSerial : public Stream
virtual int read();
virtual int available();
virtual void flush();
operator bool() { return true; }
explicit constexpr operator bool() { return true; }

using Print::write;

Expand Down