mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
55_GDS.pm: fixed readingsUpdate
git-svn-id: https://svn.fhem.de/fhem/trunk@11734 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bda671094d
commit
d65281f846
@ -1,4 +1,4 @@
|
||||
# $Id: 55_GDS.pm 11367 2016-05-02 17:22:34Z betateilchen $
|
||||
# $Id$
|
||||
|
||||
# copyright and license informations
|
||||
=pod
|
||||
@ -1023,7 +1023,7 @@ sub decodeCAPData($$$){
|
||||
my $r = ReadingsVal($name, 'a_'.$anum.'_eventCode_AREA_COLOR', '');
|
||||
if(length($r)) {
|
||||
my $v = sprintf( "%02x%02x%02x", split(" ", $r));
|
||||
readingsBulkUpdate($hash, 'a_'.$anum.'_eventCode_AREA_COLOR_hex', $v);
|
||||
readingsSingleUpdate($hash, 'a_'.$anum.'_eventCode_AREA_COLOR_hex', $v,1);
|
||||
}
|
||||
|
||||
readingsEndUpdate($hash, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user