@@ -217,7 +217,7 @@ void IRsend::sendRaw(const uint8_t aBufferWithTicks[], uint_fast8_t aLengthOfBuf
217217 mark (aBufferWithTicks [i ] * MICROS_PER_TICK );
218218 }
219219 }
220- ledOff (); // Always end with the LED off
220+ IRLedOff (); // Always end with the LED off
221221}
222222
223223/**
@@ -266,7 +266,7 @@ void IRsend::sendRaw_P(const uint8_t aBufferWithTicks[], uint_fast8_t aLengthOfB
266266 mark (duration );
267267 }
268268 }
269- ledOff (); // Always end with the LED off
269+ IRLedOff (); // Always end with the LED off
270270#endif
271271}
272272
@@ -305,7 +305,6 @@ void IRsend::sendPulseDistanceWidthData(unsigned int aOneMarkMicros, unsigned in
305305 if (aSendStopBit ) {
306306 TRACE_PRINT ('S' );
307307 mark (aZeroMarkMicros ); // seems like this is used for stop bits
308- ledOff (); // Always end with the LED off
309308 }
310309 TRACE_PRINTLN ("" );
311310}
@@ -350,7 +349,6 @@ void IRsend::sendBiphaseData(unsigned int aBiphaseTimeUnit, uint32_t aData, uint
350349 tLastBitValue = 0 ;
351350 }
352351 }
353- // ledOff(); // Always end with the LED off
354352 TRACE_PRINTLN ("" );
355353}
356354
@@ -364,14 +362,14 @@ void IRsend::mark(unsigned int aMarkMicros) {
364362 setFeedbackLED (true);
365363
366364#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
368366 customDelayMicroseconds (aMarkMicros );
369- ledOff ();
367+ IRLedOff ();
370368
371369#elif defined(USE_NO_SEND_PWM )
372370 digitalWrite (sendPin , LOW ); // Set output to active low.
373371 customDelayMicroseconds (aMarkMicros );
374- ledOff ();
372+ IRLedOff ();
375373
376374#else
377375 unsigned long start = micros ();
@@ -402,9 +400,9 @@ void IRsend::mark(unsigned int aMarkMicros) {
402400 * A space is "no output", so the PWM output is disabled.
403401 * This function may affect the state of feedback LED.
404402 */
405- void IRsend ::ledOff () {
403+ void IRsend ::IRLedOff () {
406404#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
408406#elif defined(USE_NO_SEND_PWM )
409407 digitalWrite (sendPin , HIGH ); // Set output to inactive high.
410408#else
@@ -461,7 +459,7 @@ void IRsend::enableIROut(uint8_t aFrequencyKHz) {
461459#endif
462460
463461 pinMode (sendPin , OUTPUT );
464- ledOff (); // When not sending, we want it low/inactive
462+ IRLedOff (); // When not sending, we want it low/inactive
465463}
466464
467465/** @}*/
0 commit comments