Skip to content

Commit f06ac2a

Browse files
committed
fix i2c error on camera & RTC
1 parent b565ffa commit f06ac2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/RTC8563_Class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static std::uint8_t byteToBcd2(std::uint8_t value) {
2929
}
3030

3131
bool RTC8563_Class::begin() {
32-
_i2c.begin(&Wire1, 12, 14);
32+
_i2c.begin(&Wire, 12, 14);
3333
_i2c.writeByte(BM8563_I2C_ADDR, 0x00, 0x00);
3434
return _i2c.writeByte(BM8563_I2C_ADDR, 0x0E, 0x03);
3535
;

0 commit comments

Comments
 (0)