Skip to content

Commit 30b9f7e

Browse files
committed
Fixes canAccessI2C to correct form
1 parent 72d8c3b commit 30b9f7e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/M5UnitComponent.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ bool Component::existsChild(const uint8_t ch) const
4646

4747
bool Component::canAccessI2C() const
4848
{
49-
// TODO
50-
// Tentative decisions until all units' attributes are corrected
51-
// return attribute() & attribute::AccessI2C;
52-
return true;
49+
return attribute() & attribute::AccessI2C;
5350
}
5451

5552
bool Component::canAccessGPIO() const

0 commit comments

Comments
 (0)