Skip to content

Commit

Permalink
Some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Oct 16, 2024
1 parent 890a26e commit db5b3b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/unit/unit_Miniscale.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
namespace m5 {
namespace unit {

/*!
@class UnitMiniscale
@brief Miniscale unit
*/
class UnitMiniscale : public UnitWeightI2C {
M5_UNIT_COMPONENT_HPP_BUILDER(UnitMiniscale, 0x26);

Expand Down
2 changes: 1 addition & 1 deletion src/unit/unit_WeightI2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ bool UnitWeightI2C::begin()
M5_LIB_LOGE("Failed to read firmware version %x", ver);
return false;
}
M5_LIB_LOGW("firmware: %x", ver);
M5_LIB_LOGD("firmware: %x", ver);

// Filter
if (!enableLPFilter(_cfg.lp_enable) || !writeAvgFilterLevel(_cfg.avg_filter_level) ||
Expand Down
2 changes: 1 addition & 1 deletion src/unit/unit_WeightI2C.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct Data {

/*!
@class UnitWeightI2C
@brief Temperature and humidity, sensor unit
@brief WeightI2C unit
*/
class UnitWeightI2C : public Component, public PeriodicMeasurementAdapter<UnitWeightI2C, weighti2c::Data> {
M5_UNIT_COMPONENT_HPP_BUILDER(UnitWeightI2C, 0x26);
Expand Down

0 comments on commit db5b3b3

Please sign in to comment.