diff --git a/98_SmarterCoffee.pm b/98_SmarterCoffee.pm index 5c8069c..0c96d6a 100644 --- a/98_SmarterCoffee.pm +++ b/98_SmarterCoffee.pm @@ -551,7 +551,7 @@ sub Connect($) { $hash->{DeviceName} .= ":$port"; } - main::main::DevIo_CloseDev($hash) if main::DevIo_IsOpen($hash); + main::DevIo_CloseDev($hash) if main::DevIo_IsOpen($hash); delete $hash->{DevIoJustClosed} if ( $hash->{DevIoJustClosed} ); return OpenIfRequiredAndWritePending( $hash, $isNewConnection );