mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
DevIo.pm: revert warnings, change to use DevIo (Forum #110125)
git-svn-id: https://svn.fhem.de/fhem/trunk@21659 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2d96599ccb
commit
8e3afafaf9
@ -4,6 +4,7 @@ package main;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use DevIo;
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
|
|
||||||
sub CUL_Attr(@);
|
sub CUL_Attr(@);
|
||||||
@ -126,8 +127,6 @@ CUL_Initialize($)
|
|||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
require "$attr{global}{modpath}/FHEM/DevIo.pm";
|
|
||||||
|
|
||||||
# Provider
|
# Provider
|
||||||
$hash->{ReadFn} = "CUL_Read";
|
$hash->{ReadFn} = "CUL_Read";
|
||||||
$hash->{WriteFn} = "CUL_Write";
|
$hash->{WriteFn} = "CUL_Write";
|
||||||
|
@ -5,6 +5,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
|
use DevIo;
|
||||||
use ZWLib;
|
use ZWLib;
|
||||||
use vars qw($FW_ME);
|
use vars qw($FW_ME);
|
||||||
|
|
||||||
@ -81,8 +82,6 @@ ZWDongle_Initialize($)
|
|||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
require "$attr{global}{modpath}/FHEM/DevIo.pm";
|
|
||||||
|
|
||||||
# Provider
|
# Provider
|
||||||
$hash->{ReadFn} = "ZWDongle_Read";
|
$hash->{ReadFn} = "ZWDongle_Read";
|
||||||
$hash->{WriteFn} = "ZWDongle_Write";
|
$hash->{WriteFn} = "ZWDongle_Write";
|
||||||
|
@ -4,6 +4,7 @@ package main;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use DevIo;
|
||||||
sub resolveSymLink($);
|
sub resolveSymLink($);
|
||||||
|
|
||||||
# Problems:
|
# Problems:
|
||||||
@ -566,8 +567,6 @@ CommandUsb($$)
|
|||||||
return "This command is not yet supported on windows";
|
return "This command is not yet supported on windows";
|
||||||
}
|
}
|
||||||
|
|
||||||
require "$attr{global}{modpath}/FHEM/DevIo.pm";
|
|
||||||
|
|
||||||
Log3 undef, 1, "usb $n starting";
|
Log3 undef, 1, "usb $n starting";
|
||||||
################
|
################
|
||||||
# First try to flash unflashed CULs
|
# First try to flash unflashed CULs
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
package main;
|
package main;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
|
||||||
|
|
||||||
sub DevIo_CloseDev($@);
|
sub DevIo_CloseDev($@);
|
||||||
sub DevIo_Disconnected($);
|
sub DevIo_Disconnected($);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user