change clear glass humidity syntax

This commit is contained in:
Marko Oldenburg 2019-10-11 12:04:09 +02:00
parent 44deb1c2d6
commit 70862e57aa

View File

@ -1112,7 +1112,7 @@ sub ClearGrassSensHandle0x1e($$) {
$notification =~ s/\s+//g; $notification =~ s/\s+//g;
$readings{'temperature'} = hex(substr( $notification, 4, 2 ) )/10; $readings{'temperature'} = hex(substr( $notification, 4, 2 ) )/10;
$readings{'humidity'} = hex(substr( $notification, 8, 2 ) ); $readings{'humidity'} = hex(substr($notification,11,1) .substr($notification,8,2))/10;
$hash->{helper}{CallBattery} = 0; $hash->{helper}{CallBattery} = 0;
return \%readings; return \%readings;
@ -1532,7 +1532,7 @@ sub CometBlueBTLE_CmdlinePreventGrepFalsePositive($) {
], ],
"release_status": "stable", "release_status": "stable",
"license": "GPL_2", "license": "GPL_2",
"version": "v2.7.53", "version": "v2.7.54",
"author": [ "author": [
"Marko Oldenburg <leongaultier@gmail.com>" "Marko Oldenburg <leongaultier@gmail.com>"
], ],