Skip to content

Commit

Permalink
fix datatype for tuya
Browse files Browse the repository at this point in the history
  • Loading branch information
fairecasoimeme committed Feb 6, 2025
1 parent 1f59125 commit 521141e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZLinky/Source/TuyaSpecific.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ PUBLIC void SendTuyaReportCommand(uint8_t DP)
{

teZCL_Status e_status;
uint16 totalApparentPower =0;
uint32 totalApparentPower =0;
/*totalApparentPower = sBaseDevice.sElectricalMeasurement.u16ApparentPower +
sBaseDevice.sElectricalMeasurement.u16ApparentPowerPhB +
sBaseDevice.sElectricalMeasurement.u16ApparentPowerPhC;*/

totalApparentPower = sBaseDevice.sElectricalMeasurement.u16TotalApparentPower;
totalApparentPower = sBaseDevice.sElectricalMeasurement.u32TotalApparentPower;

e_status = eCLD_TuyaCommandTotalPowerSend(totalApparentPower);
}
Expand Down

0 comments on commit 521141e

Please # to comment.