Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisKofman committed Sep 19, 2024
1 parent 1aaef34 commit eac0e4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/IRrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static ETSTimer timer;
#define ARDUINO_COREV3 1
#else
#define ARDUINO_COREV3 0
#endif // defined(ESP_ARDUINO_VERSION)
#endif // defined(ESP_ARDUINO_VERSION)

#if _ESP32_IRRECV_TIMER_HACK
// Required structs/types from:
Expand Down Expand Up @@ -380,7 +380,7 @@ void IRrecv::enableIRIn(const bool pullup) {
#else
// Fallback for ESP32 core version 2.x or earlier
timer = timerBegin(0, 1000000, true); // Old signature with divider
#endif // ARDUINO_COREV3
#endif // ARDUINO_COREV3

// Ensure the timer is successfully initialized
#ifdef DEBUG
Expand All @@ -398,7 +398,7 @@ void IRrecv::enableIRIn(const bool pullup) {
// Attach timer interrupt for core version 2.x
timerAlarmWrite(timer, MS_TO_USEC(params.timeout), true);
timerAttachInterrupt(timer, &read_timeout, false);
#endif // ARDUINO_COREV3
#endif // ARDUINO_COREV3

#endif // ESP32

Expand Down Expand Up @@ -469,7 +469,7 @@ void IRrecv::resume(void) {
#else
// For ESP32 core version 2.x
timerAlarmDisable(timer); // Disable the alarm
#endif // ARDUINO_COREV3
#endif // ARDUINO_COREV3

// Re-enable GPIO interrupt in both versions
gpio_intr_enable((gpio_num_t)params.recvpin);
Expand Down

0 comments on commit eac0e4d

Please sign in to comment.