mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
71_COE_Node: fix for negative temparatures by thor3
git-svn-id: https://svn.fhem.de/fhem/trunk@25442 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b8f846e58e
commit
0efdd77184
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 71_COE_Node: fix for negative temparatures by thor3
|
||||||
- bugfix: 47_OBIS: remove control characters in strings
|
- bugfix: 47_OBIS: remove control characters in strings
|
||||||
- feature: 10_KNX: KNX_scan Utility function
|
- feature: 10_KNX: KNX_scan Utility function
|
||||||
- bugfix: 82_LGTV_WebOS: rewrite and change code, fix bugs of older version
|
- bugfix: 82_LGTV_WebOS: rewrite and change code, fix bugs of older version
|
||||||
|
@ -167,6 +167,7 @@ sub COE_Node_HandleAnalogValues {
|
|||||||
my $existingConfig = exists $readingsMapping[$entryId];
|
my $existingConfig = exists $readingsMapping[$entryId];
|
||||||
my $value = $values[$i];
|
my $value = $values[$i];
|
||||||
my $type = $types[$i];
|
my $type = $types[$i];
|
||||||
|
my $vorz = (substr $value, 0,1);
|
||||||
|
|
||||||
if ($existingConfig) {
|
if ($existingConfig) {
|
||||||
|
|
||||||
@ -176,6 +177,9 @@ sub COE_Node_HandleAnalogValues {
|
|||||||
$value = (substr $value, 0, (length $value)-2) . "." . (substr $value, -2);
|
$value = (substr $value, 0, (length $value)-2) . "." . (substr $value, -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( COE_Node_BeginsWith($value, '-.') ) {
|
||||||
|
$value = "-0." . (substr $value, 2, (length $value));
|
||||||
|
}
|
||||||
if ( COE_Node_BeginsWith($value, '.') ) {
|
if ( COE_Node_BeginsWith($value, '.') ) {
|
||||||
$value = "0$value";
|
$value = "0$value";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user