Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

fix curr temp when higher than 25.5 #164

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Conversation

reenx
Copy link
Contributor

@reenx reenx commented Jul 24, 2019

A fix for displaying temperatures above 25.5 degrees. This should fix issue #163 .
I tested it on my local system and there the temperatures are now correct.
Also via MQTT. Not sure why they were wrong in the first place as this is not used for mqtt as far as I can see. (Perhaps that was changed after version 1.6.0).

Anyway it all appears to work now both for mqtt as for the telnet interface.

@proddy
Copy link
Collaborator

proddy commented Jul 25, 2019

@reenx thanks for finding the issue. Question: why do you multiple the setpoint temp by 5 ?

@reenx
Copy link
Contributor Author

reenx commented Jul 25, 2019

@reenx thanks for finding the issue. Question: why do you multiple the setpoint temp by 5 ?

The original value is 2 times the human readable value. By multiplying by 5 and using a decimal of 1 (dividing by 10) I effectively divide by 2 and I do not lose the precision because of rounding.

@proddy proddy merged commit 807d1de into emsesp:master Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants