Skip to content

Commit 4e9943d

Browse files
committed
Merge branch 'develop'
2 parents 2d36f7d + f82cd4c commit 4e9943d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"m5stack/M5Utility": ">=0.0.10",
1515
"m5stack/M5HAL": "*"
1616
},
17-
"version": "0.4.1",
17+
"version": "0.4.2",
1818
"frameworks": [
1919
"arduino"
2020
],

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=M5UnitUnified
2-
version=0.4.1
2+
version=0.4.2
33
author=M5Stack
44
maintainer=M5Stack
55
sentence=M5UnitUnified is a library for unified handling of various M5 units products. (Alpha version)

src/m5_unit_component/adapter_i2c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ AdapterI2C::I2CClassImpl::I2CClassImpl(m5::I2C_Class& i2c, const uint8_t addr, c
342342

343343
bool AdapterI2C::I2CClassImpl::begin()
344344
{
345-
return true; // Already initialized by M5Unified
345+
return _i2c->begin();
346346
}
347347

348348
bool AdapterI2C::I2CClassImpl::end()
349349
{
350-
return true; // Managed by M5Unified
350+
return _i2c->release();
351351
}
352352

353353
m5::hal::error::error_t AdapterI2C::I2CClassImpl::readWithTransaction(uint8_t* data, const size_t len)

0 commit comments

Comments
 (0)