Changed sending command to send the command 5 time with 10ms spacing, now much more robust. Playtime now adds in the "delay" from resetting. Some weirdness with EOL, setting to CRLF for now.
This commit is contained in:
@@ -33,11 +33,12 @@ int heartbeat_state=0;
|
||||
String INST_NAME="Trajectories";
|
||||
String ARTIST="Sigurdur Gudjonsson (video) & Anna Thorvaldsdottir (sound)";
|
||||
String YEAR="2014";
|
||||
int videotime = 14*60+44; // set here your DVD title playtime in seconds
|
||||
int choptime = 3; // how much to chop at the end if the videos are
|
||||
int videotime = 10; // set here your DVD title playtime in seconds
|
||||
int choptime = 2; // how much to chop at the end if the videos are
|
||||
// not exactly the same length
|
||||
int playtime = videotime - choptime;
|
||||
int resetdelay = 3; // seconds from reset to playing from beginning
|
||||
int resetdelay = 1; // seconds from reset to playing from beginning
|
||||
int playtime = videotime - choptime + resetdelay;
|
||||
|
||||
|
||||
IRsend irsend;
|
||||
int alarm_bell = false;
|
||||
@@ -92,7 +93,10 @@ void sync() {
|
||||
//send_pause();
|
||||
//waitsec(resetdelay);
|
||||
|
||||
send_previous();
|
||||
for (int i=0; i<5; i++) {
|
||||
send_previous();
|
||||
delay(10); // need short pause between commands, 10ms is good
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user