We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6251381 commit e4111a7Copy full SHA for e4111a7
examples/ReceiveAndSend/ReceiveAndSend.ino
@@ -57,6 +57,7 @@ int SEND_BUTTON_PIN = APPLICATION_PIN;
57
int STATUS_PIN = LED_BUILTIN;
58
59
int DELAY_BETWEEN_REPEAT = 50;
60
+int DEFAULT_NUMBER_OF_REPEATS_TO_SEND = 3;
61
62
// On the Zero and others we switch explicitly to SerialUSB
63
#if defined(ARDUINO_ARCH_SAMD)
@@ -202,7 +203,7 @@ void sendCode(storedIRDataStruct *aIRDataToSend) {
202
203
/*
204
* Use the write function, which does the switch for different protocols
205
*/
- IrSender.write(&aIRDataToSend->receivedIRData, NO_REPEATS);
206
+ IrSender.write(&aIRDataToSend->receivedIRData, DEFAULT_NUMBER_OF_REPEATS_TO_SEND);
207
208
Serial.print(F("Sent: "));
209
printIRResultShort(&Serial, &aIRDataToSend->receivedIRData);
0 commit comments