mirror of https://github.com/arendst/Tasmota.git
Merge pull request #11513 from jaymemaurice/development
TuyaMCU driver use TempRes to adjust precision of humidity
This commit is contained in:
commit
f7dd04a42f
|
@ -1363,11 +1363,11 @@ void TuyaSensorsShow(bool json)
|
||||||
dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[1], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval), TempUnit());
|
dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[1], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval), TempUnit());
|
||||||
break;
|
break;
|
||||||
case 73:
|
case 73:
|
||||||
WSContentSend_PD(HTTP_SNS_HUM, "", dtostrfd(Tuya.Sensors[2], Settings.flag2.temperature_resolution, tempval));
|
WSContentSend_PD(HTTP_SNS_HUM, "", dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[2], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval));
|
||||||
break;
|
break;
|
||||||
case 74:
|
case 74:
|
||||||
WSContentSend_PD(PSTR("{s}" D_HUMIDITY " Set{m}%s " D_UNIT_PERCENT "{e}"),
|
WSContentSend_PD(PSTR("{s}" D_HUMIDITY " Set{m}%s " D_UNIT_PERCENT "{e}"),
|
||||||
dtostrfd(Tuya.Sensors[3], Settings.flag2.temperature_resolution, tempval));
|
dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[3], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval));
|
||||||
break;
|
break;
|
||||||
case 75:
|
case 75:
|
||||||
WSContentSend_PD(HTTP_SNS_ILLUMINANCE, "", Tuya.Sensors[4]);
|
WSContentSend_PD(HTTP_SNS_ILLUMINANCE, "", Tuya.Sensors[4]);
|
||||||
|
|
Loading…
Reference in New Issue