32 M5_UNIT_COMPONENT_HPP_BUILDER(
UnitEEPROM, 0x00);
35 explicit UnitEEPROM(
const uint8_t addr = DEFAULT_ADDRESS) : Component(addr)
44 return _calibration[m5::stl::to_underlying(gain)].hope;
48 return _calibration[m5::stl::to_underlying(gain)].actual;
52 return actual(gain) ? (float)hope(gain) / actual(gain) : 1.0f;
55 bool readCalibration();
65 std::array<Calibration, 8 > _calibration{};