mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
36_LaCrosse.pm: removed switch
git-svn-id: https://svn.fhem.de/fhem/trunk@8727 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b3081e54a4
commit
447918d46b
@ -7,7 +7,6 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
use SetExtensions;
|
||||
use Switch;
|
||||
|
||||
sub LaCrosse_Parse($$);
|
||||
|
||||
@ -245,12 +244,15 @@ sub LaCrosse_Parse($$) {
|
||||
$addr = sprintf( "%02X", $bytes[0] );
|
||||
$typeNumber = $bytes[1];
|
||||
|
||||
switch($typeNumber) {
|
||||
case 1 {$typeName = "TX22";}
|
||||
case 2 {$typeName = "NodeSensor";}
|
||||
else {$typeName = "unknown";}
|
||||
if($typeNumber == 1) {
|
||||
$typeName = "TX22";
|
||||
}
|
||||
elsif($typeNumber == 2) {
|
||||
$typeName = "NodeSensor";
|
||||
}
|
||||
else {
|
||||
$typeName = "unknown";
|
||||
}
|
||||
|
||||
|
||||
$battery_new = $bytes[13] & 0x01;
|
||||
$battery_low = $bytes[13] & 0x04;
|
||||
|
Loading…
Reference in New Issue
Block a user