try to change namespace?

This commit is contained in:
lady ada 2021-11-17 13:46:59 -05:00
parent 86cb7eefc8
commit 76bcd63f18
2 changed files with 6 additions and 7 deletions

View File

@ -127,16 +127,15 @@ bool Adafruit_I2CDevice::write(const uint8_t *buffer, size_t len, bool stop,
DEBUG_SERIAL.println();
}
}
DEBUG_SERIAL.println();
#endif
#ifdef DEBUG_SERIAL
DEBUG_SERIAL.print("\tStop: ");
DEBUG_SERIAL.println(stop);
if (stop) {
DEBUG_SERIAL.print("\tSTOP");
}
#endif
if (_wire->endTransmission(stop) == 0) {
#ifdef DEBUG_SERIAL
DEBUG_SERIAL.println();
// DEBUG_SERIAL.println("Sent!");
#endif
return true;

View File

@ -6,7 +6,7 @@
///< The class which defines how we will talk to this device over I2C
class Adafruit_I2CDevice {
public:
Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire);
Adafruit_I2CDevice(uint8_t addr, arduino::TwoWire *theWire = &Wire);
uint8_t address(void);
bool begin(bool addr_detect = true);
bool detected(void);
@ -25,7 +25,7 @@ public:
private:
uint8_t _addr;
TwoWire *_wire;
arduino::TwoWire *_wire;
bool _begun;
size_t _maxBufferSize;
bool _read(uint8_t *buffer, size_t len, bool stop);