mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
include check for existing FRM device before calling FRM_Client_Define
git-svn-id: https://svn.fhem.de/fhem/trunk@2662 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9496006343
commit
7dc961d32b
@ -193,9 +193,12 @@ sub OWX_Define ($$) {
|
||||
$hash->{HWDEVICE} = $owx_hwdevice;
|
||||
#-- check if we are connecting to Arduino (via FRM):
|
||||
} elsif ($dev =~ /^\d{1,2}$/) {
|
||||
require "10_FRM.pm";
|
||||
$hash->{INTERFACE} = "firmata";
|
||||
FRM_Client_Define($hash,$def);
|
||||
if (defined $main::modules{FRM}) {
|
||||
$hash->{INTERFACE} = "firmata";
|
||||
FRM_Client_Define($hash,$def);
|
||||
} else {
|
||||
Log 1,"module FRM not yet loaded, please define an FRM device first.";
|
||||
}
|
||||
} else {
|
||||
$hash->{DeviceName} = $dev;
|
||||
#-- Second step in case of CUNO: See if we can open it
|
||||
|
Loading…
Reference in New Issue
Block a user