Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions FHEM/00_SIGNALduino.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $Id: 00_SIGNALduino.pm 3.5.6 2024-01-06 16:07:53Z elektron-bbs $
# $Id: 00_SIGNALduino.pm 3.5.6 2024-03-09 15:51:45Z sidey79 $
# v3.5.6 - https://github.com/RFD-FHEM/RFFHEM/tree/master
# The module is inspired by the FHEMduino project and modified in serval ways for processing the incoming messages
# see http://www.fhemwiki.de/wiki/SIGNALDuino
Expand Down Expand Up @@ -30,7 +30,7 @@ eval {use Data::Dumper qw(Dumper);1};
use constant HAS_JSON => defined eval { require JSON; JSON->import; };

eval {use Scalar::Util qw(looks_like_number);1};
eval {use Time::HiRes qw(gettimeofday);1} ;
eval {use Time::HiRes qw(gettimeofday usleep);1} ;
eval {use FHEM::Core::Timer::Helper;1 } ;

use lib::SD_Protocols;
Expand All @@ -42,7 +42,7 @@ use List::Util qw(first);


use constant {
SDUINO_VERSION => '3.5.6+20231214', # Datum wird automatisch bei jedem pull request aktualisiert
SDUINO_VERSION => '3.5.6+20230815', # Datum wird automatisch bei jedem pull request aktualisiert
SDUINO_INIT_WAIT_XQ => 1.5, # wait disable device
SDUINO_INIT_WAIT => 2,
SDUINO_INIT_MAXRETRY => 3,
Expand Down Expand Up @@ -533,11 +533,12 @@ sub SIGNALduino_avrdude {

local $/=undef;
if (-e $logFile) {
open FILE, $logFile;
open my $Log_FH, '>', $logFile or croak qq[Can't open $logFile];

$hash->{helper}{avrdudelogs} .= "--- AVRDUDE ---------------------------------------------------------------------------------\n";
$hash->{helper}{avrdudelogs} .= <FILE>;
$hash->{helper}{avrdudelogs} .= $Log_FH;
$hash->{helper}{avrdudelogs} .= "--- AVRDUDE ---------------------------------------------------------------------------------\n\n";
close FILE;
close $Log_FH;
} else {
$hash->{helper}{avrdudelogs} .= "WARNING: avrdude created no log file\n\n";
readingsSingleUpdate($hash,'state','FIRMWARE UPDATE with error',1);
Expand Down Expand Up @@ -3098,7 +3099,7 @@ sub SIGNALduino_SimpleWrite {
syswrite($hash->{DIODev}, $msg) if($hash->{DIODev});

# Some linux installations are broken with 0.001, T01 returns no answer
select(undef, undef, undef, 0.01);
usleep 10000;
}

############################# package main
Expand Down
2 changes: 1 addition & 1 deletion controls_signalduino.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UPD 2024-01-06_20:21:35 240687 FHEM/00_SIGNALduino.pm
UPD 2024-03-09_16:51:19 240721 FHEM/00_SIGNALduino.pm
UPD 2023-01-06_12:08:43 20082 FHEM/10_FS10.pm
UPD 2024-01-03_23:05:39 27250 FHEM/10_SD_GT.pm
UPD 2023-01-01_18:10:40 25403 FHEM/10_SD_Rojaflex.pm
Expand Down