mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
51_MOBILEALERTS.pm: Offlimit for decodeHumidityDecimal added
git-svn-id: https://svn.fhem.de/fhem/trunk@17948 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2fd09ceafb
commit
9a1b52c772
@ -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.pm: Offlimit for decodeHumidityDecimal added
|
||||
- change: 98_MSwitch.pm, update V2.07
|
||||
- change: 20_FRM_IN: only update on change (Forum #81815)
|
||||
- bugfix: 73_AutoShuttersControl: fix absent Event and ModeDown absent bug
|
||||
|
@ -1041,7 +1041,9 @@ sub MOBILEALERTS_decodeHumidity($) {
|
||||
|
||||
sub MOBILEALERTS_decodeHumidityDecimal($) {
|
||||
my ($humidity) = @_;
|
||||
return ( $humidity & 0x3FF ) * 0.1;
|
||||
$humidity = $humidity & 0x3FF;
|
||||
return 9999 if ( $humidity == 1023 );
|
||||
return $humidity * 0.1;
|
||||
}
|
||||
|
||||
sub MOBILEALERTS_humidityToString($) {
|
||||
|
Loading…
Reference in New Issue
Block a user