Skip to content

Commit 028b28a

Browse files
authored
Merge pull request #112 from fionn-r/master
If there are no global instances defined, don't provide default &Seri…
2 parents fccaf61 + 8ede434 commit 028b28a

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
@@ -77,8 +77,13 @@ class Adafruit_BusIO_Register {
7777
void setAddress(uint16_t address);
7878
void setAddressWidth(uint16_t address_width);
7979

80+
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
8081
void print(Stream *s = &Serial);
8182
void println(Stream *s = &Serial);
83+
#else
84+
void print(Stream *s);
85+
void println(Stream *s);
86+
#endif
8287

8388
private:
8489
Adafruit_I2CDevice *_i2cdevice;

0 commit comments

Comments
 (0)