@@ -370,8 +370,8 @@ void ShellySwitch::AddPowerMeter(uint16_t *iid) {
370
370
// Power
371
371
power_char_ = new mgos::hap::FloatCharacteristic (
372
372
(*iid)++, &kHAPCharacteristic_EveConsumption , 0 .0f , 65535 .0f , 0 .1f ,
373
- [this ](HAPAccessoryServerRef *,
374
- const HAPFloatCharacteristicReadRequest *, float *value) {
373
+ [this ](HAPAccessoryServerRef *, const HAPFloatCharacteristicReadRequest *,
374
+ float *value) {
375
375
auto power = out_pm_->GetPowerW ();
376
376
if (!power.ok ()) return kHAPError_Busy ;
377
377
*value = power.ValueOrDie ();
@@ -382,8 +382,8 @@ void ShellySwitch::AddPowerMeter(uint16_t *iid) {
382
382
// Energy
383
383
total_power_char_ = new mgos::hap::FloatCharacteristic (
384
384
(*iid)++, &kHAPCharacteristic_EveTotalConsumption , 0 .0f , 65535 .0f , 0 .1f ,
385
- [this ](HAPAccessoryServerRef *,
386
- const HAPFloatCharacteristicReadRequest *, float *value) {
385
+ [this ](HAPAccessoryServerRef *, const HAPFloatCharacteristicReadRequest *,
386
+ float *value) {
387
387
auto energy = out_pm_->GetEnergyWH ();
388
388
if (!energy.ok ()) return kHAPError_Busy ;
389
389
*value = energy.ValueOrDie ();
0 commit comments