2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-18 05:56:03 +00:00

51_MOBILEALERTS: Bugfix temperature MA10120PRO

git-svn-id: https://svn.fhem.de/fhem/trunk@17494 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
MarkusF 2018-10-08 18:07:46 +00:00
parent e2e39b47cb
commit dc5fa7e4a7
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 51_MOBILEALERTS: Fix temperature for MA10320PRO
- change: 93_DbLog, 93_DbRep: minor fix time until DB is closed
- change: 38_netatmo: changed weathermap calls to new endpoints
- feature: 5.9 released

View File

@ -1015,12 +1015,15 @@ sub MOBILEALERTS_decodeTemperature($) {
#Illegal value
return -9999 if ( ( $temperature & 0x1000 ) == 0x1000 );
#Clear flags
$temperature &= 0x7ff;
#Negativ Values
return ( 0x800 - ( $temperature & 0x7ff ) ) * -0.1
if ( ( $temperature & 0x400 ) == 0x400 );
return ( 0x800 - $temperature ) * -0.1
if ( $temperature > 1100 );
#Positiv Values
return ( $temperature & 0x7ff ) * 0.1;
return $temperature * 0.1;
}
sub MOBILEALERTS_temperatureToString($) {