@@ -217,7 +217,7 @@ void IRsend::sendRaw(const uint8_t aBufferWithTicks[], uint_fast8_t aLengthOfBuf
217
217
mark (aBufferWithTicks [i ] * MICROS_PER_TICK );
218
218
}
219
219
}
220
- ledOff (); // Always end with the LED off
220
+ IRLedOff (); // Always end with the LED off
221
221
}
222
222
223
223
/**
@@ -266,7 +266,7 @@ void IRsend::sendRaw_P(const uint8_t aBufferWithTicks[], uint_fast8_t aLengthOfB
266
266
mark (duration );
267
267
}
268
268
}
269
- ledOff (); // Always end with the LED off
269
+ IRLedOff (); // Always end with the LED off
270
270
#endif
271
271
}
272
272
@@ -305,7 +305,6 @@ void IRsend::sendPulseDistanceWidthData(unsigned int aOneMarkMicros, unsigned in
305
305
if (aSendStopBit ) {
306
306
TRACE_PRINT ('S' );
307
307
mark (aZeroMarkMicros ); // seems like this is used for stop bits
308
- ledOff (); // Always end with the LED off
309
308
}
310
309
TRACE_PRINTLN ("" );
311
310
}
@@ -350,7 +349,6 @@ void IRsend::sendBiphaseData(unsigned int aBiphaseTimeUnit, uint32_t aData, uint
350
349
tLastBitValue = 0 ;
351
350
}
352
351
}
353
- // ledOff(); // Always end with the LED off
354
352
TRACE_PRINTLN ("" );
355
353
}
356
354
@@ -364,14 +362,14 @@ void IRsend::mark(unsigned int aMarkMicros) {
364
362
setFeedbackLED (true);
365
363
366
364
#if defined(SEND_PWM_BY_TIMER ) || defined(ESP32 )
367
- TIMER_ENABLE_SEND_PWM ; // Enable timer or ledcWrite() generated PWM output
365
+ ENABLE_SEND_PWM_BY_TIMER ; // Enable timer or ledcWrite() generated PWM output
368
366
customDelayMicroseconds (aMarkMicros );
369
- ledOff ();
367
+ IRLedOff ();
370
368
371
369
#elif defined(USE_NO_SEND_PWM )
372
370
digitalWrite (sendPin , LOW ); // Set output to active low.
373
371
customDelayMicroseconds (aMarkMicros );
374
- ledOff ();
372
+ IRLedOff ();
375
373
376
374
#else
377
375
unsigned long start = micros ();
@@ -402,9 +400,9 @@ void IRsend::mark(unsigned int aMarkMicros) {
402
400
* A space is "no output", so the PWM output is disabled.
403
401
* This function may affect the state of feedback LED.
404
402
*/
405
- void IRsend ::ledOff () {
403
+ void IRsend ::IRLedOff () {
406
404
#if defined(SEND_PWM_BY_TIMER ) || defined(ESP32 )
407
- TIMER_DISABLE_SEND_PWM ; // Disable PWM output
405
+ DISABLE_SEND_PWM_BY_TIMER ; // Disable PWM output
408
406
#elif defined(USE_NO_SEND_PWM )
409
407
digitalWrite (sendPin , HIGH ); // Set output to inactive high.
410
408
#else
@@ -461,7 +459,7 @@ void IRsend::enableIROut(uint8_t aFrequencyKHz) {
461
459
#endif
462
460
463
461
pinMode (sendPin , OUTPUT );
464
- ledOff (); // When not sending, we want it low/inactive
462
+ IRLedOff (); // When not sending, we want it low/inactive
465
463
}
466
464
467
465
/** @}*/
0 commit comments