Skip to content

Commit

Permalink
Cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Oct 16, 2024
1 parent de333a8 commit 569b629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/m5_unit_component/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WireImpl : public Adapter::Impl {
virtual m5::hal::error::error_t readWithTransaction(uint8_t* data, const size_t len) override
{
assert(_addr);
//_wire->setClock(_clock); DON'T CALL
//_wire->setClock(_clock); DON'T CALL

if (data && _wire->requestFrom(_addr, len)) {
auto count = std::min(len, (size_t)_wire->available());
Expand Down Expand Up @@ -105,7 +105,7 @@ class WireImpl : public Adapter::Impl {
m5::hal::error::error_t write_with_transaction(const uint8_t addr, const uint8_t* data, const size_t len,
const bool stop)
{
_wire->setClock(_clock); //
_wire->setClock(_clock); //
_wire->beginTransmission(addr);
if (data) {
_wire->write(data, len);
Expand Down
13 changes: 7 additions & 6 deletions test/unit_unified_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <M5UnitUnifiedHUB.h>
#include <M5UnitUnifiedGESTURE.h>
#include <M5UnitUnifiedHEART.h>
#include <M5UnitUnifiedToF4M.h>
#include <M5UnitUnifiedWeightI2C.h>
#include <M5UnitUnifiedToF.h>
#include <M5UnitUnifiedWEIGHT.h>

#if 0
#include <unit/unit_MFRC522.hpp>
Expand Down Expand Up @@ -104,13 +104,14 @@ TEST(UnitUnified, EachUnit)
// HEART
each_unit_test<m5::unit::UnitMAX30100>();

// ToF4M
each_unit_test<m5::unit::UnitToF4M>();
// ToF
each_unit_test<m5::unit::UnitToF>();
each_unit_test<m5::unit::UnitToF4M>();

// Scale/Weight
// WEIGHT
each_unit_test<m5::unit::UnitWeightI2C>();
each_unit_test<m5::unit::UnitMiniscale>();

#if 0
each_unit_test<m5::unit::UnitMFRC522>();
each_unit_test<m5::unit::UnitWS1850S>();
Expand Down

0 comments on commit 569b629

Please sign in to comment.