If there are no global instances defined, don't provide default &Serial argument

This commit is contained in:
Fionnán 2023-02-01 10:21:56 +01:00 committed by GitHub
parent 186bfb005c
commit 24c2d82ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -71,8 +71,13 @@ public:
void setAddress(uint16_t address); void setAddress(uint16_t address);
void setAddressWidth(uint16_t address_width); void setAddressWidth(uint16_t address_width);
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
void print(Stream *s = &Serial); void print(Stream *s = &Serial);
void println(Stream *s = &Serial); void println(Stream *s = &Serial);
#elif
void print(Stream *s);
void println(Stream *s);
#endif
private: private:
Adafruit_I2CDevice *_i2cdevice; Adafruit_I2CDevice *_i2cdevice;