2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

00_TCM: function call switched to "use DevIo"

git-svn-id: https://svn.fhem.de/fhem/trunk@22616 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer 2020-08-17 16:09:25 +00:00
parent 7bee0a2991
commit 5ecdec9dbf

View File

@ -11,12 +11,8 @@
package main;
use strict;
use warnings;
use DevIo;
use Time::HiRes qw(gettimeofday usleep);
if( $^O =~ /Win/ ) {
require Win32::SerialPort;
} else {
require Device::SerialPort;
}
sub TCM_Read($);
sub TCM_ReadAnswer($$);
sub TCM_Ready($);
@ -28,7 +24,6 @@ sub TCM_CSUM($);
sub TCM_Initialize($) {
my ($hash) = @_;
require "$attr{global}{modpath}/FHEM/DevIo.pm";
# Provider
$hash->{ReadFn} = "TCM_Read";
@ -237,7 +232,7 @@ sub TCM_Fingerprint($$) {
sub TCM_Write($$$$) {
# Input is header and data (HEX), without CRC
my ($hash, $shash, $header, $msg) = @_;
return if (!exists($hash->{helper}{init_done}) && $hash != $shash);
#return if (!exists($hash->{helper}{init_done}) && $hash != $shash);
# return if (!defined($header));
my $name = $hash->{NAME};
my $bstring;