2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

69_SoftliqCloud.pm: Small fix to avoid "garbage" message in Log.

git-svn-id: https://svn.fhem.de/fhem/trunk@24164 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
KernSani 2021-04-06 18:57:30 +00:00
parent 1a8cb12ede
commit 448a075238

View File

@ -1664,8 +1664,8 @@ sub wsStart {
DevIo_SimpleWrite( $hash, '{"protocol":"json","version":1}', 2 );
#succesfully connected - start a timer
#my $next = int( gettimeofday() ) + MINUTESECONDS;
#InternalTimer( $next, 'FHEM::Gruenbeck::SoftliqCloud::wsClose', $hash, 0 );
my $next = int( gettimeofday() ) + MINUTESECONDS;
InternalTimer( $next, 'FHEM::Gruenbeck::SoftliqCloud::wsClose', $hash, 0 );
return;
}
@ -1909,6 +1909,7 @@ sub wsReadDevIo {
return;
}
$buf =~ s///xsm;
$buf =~ s/\\x{1e}//xsm;
if ( length($buf) == 0 ) {
return;
}