Skip to content

Commit e4111a7

Browse files
committed
Changed number of default repeats from 0 to 3.
1 parent 6251381 commit e4111a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ReceiveAndSend/ReceiveAndSend.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ int SEND_BUTTON_PIN = APPLICATION_PIN;
5757
int STATUS_PIN = LED_BUILTIN;
5858

5959
int DELAY_BETWEEN_REPEAT = 50;
60+
int DEFAULT_NUMBER_OF_REPEATS_TO_SEND = 3;
6061

6162
// On the Zero and others we switch explicitly to SerialUSB
6263
#if defined(ARDUINO_ARCH_SAMD)
@@ -202,7 +203,7 @@ void sendCode(storedIRDataStruct *aIRDataToSend) {
202203
/*
203204
* Use the write function, which does the switch for different protocols
204205
*/
205-
IrSender.write(&aIRDataToSend->receivedIRData, NO_REPEATS);
206+
IrSender.write(&aIRDataToSend->receivedIRData, DEFAULT_NUMBER_OF_REPEATS_TO_SEND);
206207

207208
Serial.print(F("Sent: "));
208209
printIRResultShort(&Serial, &aIRDataToSend->receivedIRData);

0 commit comments

Comments
 (0)