Skip to content

Commit e3a0a3a

Browse files
ci(pre-commit): Apply automatic fixes
1 parent d556463 commit e3a0a3a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

cores/esp32/esp32-hal-timer.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ struct timer_struct_t {
4444

4545
inline TIMER_IRAM uint64_t timerRead(hw_timer_t *timer) {
4646
if (timer == NULL) {
47-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
47+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
4848
log_e("Timer handle is NULL");
49-
#endif
49+
#endif
5050
return 0;
5151
}
5252
uint64_t value;
@@ -56,19 +56,19 @@ inline TIMER_IRAM uint64_t timerRead(hw_timer_t *timer) {
5656

5757
void TIMER_IRAM timerWrite(hw_timer_t *timer, uint64_t val) {
5858
if (timer == NULL) {
59-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
59+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
6060
log_e("Timer handle is NULL");
61-
#endif
61+
#endif
6262
return;
6363
}
6464
gptimer_set_raw_count(timer->timer_handle, val);
6565
}
6666

6767
void TIMER_IRAM timerAlarm(hw_timer_t *timer, uint64_t alarm_value, bool autoreload, uint64_t reload_count) {
6868
if (timer == NULL) {
69-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
69+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
7070
log_e("Timer handle is NULL");
71-
#endif
71+
#endif
7272
return;
7373
}
7474
esp_err_t err = ESP_OK;
@@ -79,9 +79,9 @@ void TIMER_IRAM timerAlarm(hw_timer_t *timer, uint64_t alarm_value, bool autorel
7979
};
8080
err = gptimer_set_alarm_action(timer->timer_handle, &alarm_cfg);
8181
if (err != ESP_OK) {
82-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
82+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
8383
log_e("Timer Alarm Write failed, error num=%d", err);
84-
#endif
84+
#endif
8585
}
8686
}
8787

@@ -96,9 +96,9 @@ uint32_t timerGetFrequency(hw_timer_t *timer) {
9696

9797
void TIMER_IRAM timerStart(hw_timer_t *timer) {
9898
if (timer == NULL) {
99-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
99+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
100100
log_e("Timer handle is NULL");
101-
#endif
101+
#endif
102102
return;
103103
}
104104
gptimer_start(timer->timer_handle);
@@ -107,9 +107,9 @@ void TIMER_IRAM timerStart(hw_timer_t *timer) {
107107

108108
void TIMER_IRAM timerStop(hw_timer_t *timer) {
109109
if (timer == NULL) {
110-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
110+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
111111
log_e("Timer handle is NULL");
112-
#endif
112+
#endif
113113
return;
114114
}
115115
gptimer_stop(timer->timer_handle);
@@ -118,9 +118,9 @@ void TIMER_IRAM timerStop(hw_timer_t *timer) {
118118

119119
void TIMER_IRAM timerRestart(hw_timer_t *timer) {
120120
if (timer == NULL) {
121-
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
121+
#ifndef CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM
122122
log_e("Timer handle is NULL");
123-
#endif
123+
#endif
124124
return;
125125
}
126126
gptimer_set_raw_count(timer->timer_handle, 0);

0 commit comments

Comments
 (0)