Skip to content

Commit 24c2d82

Browse files
authored
If there are no global instances defined, don't provide default &Serial argument
1 parent 186bfb0 commit 24c2d82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Adafruit_BusIO_Register.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ class Adafruit_BusIO_Register {
7171
void setAddress(uint16_t address);
7272
void setAddressWidth(uint16_t address_width);
7373

74+
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
7475
void print(Stream *s = &Serial);
7576
void println(Stream *s = &Serial);
77+
#elif
78+
void print(Stream *s);
79+
void println(Stream *s);
80+
#endif
7681

7782
private:
7883
Adafruit_I2CDevice *_i2cdevice;

0 commit comments

Comments
 (0)