From eee31e0f3344f23873124e7a91a44cc43d937f74 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Mon, 26 Nov 2012 19:48:11 +0000 Subject: [PATCH] MAX: format desiredTemperature with fixed precision This make the new longpoll update of dropdowns work. git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2200 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index ccc9bf20a..8c60515de 100755 --- a/FHEM/10_MAX.pm +++ b/FHEM/10_MAX.pm @@ -264,7 +264,8 @@ MAX_Parse($$) readingsBeginUpdate($shash); readingsBulkUpdate($shash, "battery", $batterylow ? "low" : "ok"); - readingsBulkUpdate($shash, "desiredTemperature", $temperaturesetpoint); + #This formatting must match with in MAX_Set:$templist + readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$temperaturesetpoint)); readingsBulkUpdate($shash, "valveposition", $valveposition); if($measuredTemperature ne "") { readingsBulkUpdate($shash, "temperature", $measuredTemperature);