Skip to content

Commit 7156fde

Browse files
ci(pre-commit): Apply automatic fixes
1 parent ac0fc7f commit 7156fde

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: cores/esp32/esp32-hal-rmt.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ struct rmt_obj_s {
5858
uint32_t signal_range_min_ns; // RX Filter data - Low Pass pulse width
5959
uint32_t signal_range_max_ns; // RX idle time that defines end of reading
6060

61-
EventGroupHandle_t rmt_events; // read/write done event RMT callback handle
62-
bool rmt_ch_is_looping; // Is this RMT TX Channel in LOOPING MODE?
63-
size_t *num_symbols_read; // Pointer to the number of RMT symbol read by IDF RMT RX Done
64-
rmt_reserve_memsize_t mem_size; // RMT Memory size
65-
uint32_t frequency_Hz; // RMT Frequency
66-
uint8_t rmt_EOT_Level; // RMT End of Transmission Level - default is LOW
61+
EventGroupHandle_t rmt_events; // read/write done event RMT callback handle
62+
bool rmt_ch_is_looping; // Is this RMT TX Channel in LOOPING MODE?
63+
size_t *num_symbols_read; // Pointer to the number of RMT symbol read by IDF RMT RX Done
64+
rmt_reserve_memsize_t mem_size; // RMT Memory size
65+
uint32_t frequency_Hz; // RMT Frequency
66+
uint8_t rmt_EOT_Level; // RMT End of Transmission Level - default is LOW
6767

6868
#if !CONFIG_DISABLE_HAL_LOCKS
6969
SemaphoreHandle_t g_rmt_objlocks; // Channel Semaphore Lock
@@ -470,9 +470,9 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_
470470
peripheral_bus_type_t rmt_bus_type = perimanGetPinBusType(pin);
471471
if (rmt_bus_type == ESP32_BUS_TYPE_RMT_TX || rmt_bus_type == ESP32_BUS_TYPE_RMT_RX) {
472472
rmt_ch_dir_t bus_rmt_dir = rmt_bus_type == ESP32_BUS_TYPE_RMT_TX ? RMT_TX_MODE : RMT_RX_MODE;
473-
bus = (rmt_bus_handle_t) perimanGetPinBus(pin, rmt_bus_type);
473+
bus = (rmt_bus_handle_t)perimanGetPinBus(pin, rmt_bus_type);
474474
if (bus->frequency_Hz == frequency_Hz && bus_rmt_dir == channel_direction && bus->mem_size == mem_size) {
475-
return true; // already initialized with the same parameters
475+
return true; // already initialized with the same parameters
476476
}
477477
}
478478

0 commit comments

Comments
 (0)