Skip to content

Commit 745cdfb

Browse files
authored
adds return value to the rmtSetEOT() function
1 parent 52d1fa4 commit 745cdfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp32/esp32-hal-rmt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static bool _rmtDetachBus(void *busptr)
186186
Public method definitions
187187
*/
188188

189-
void rmtSetEOT(int pin, uint8_t EOT_Level)
189+
bool rmtSetEOT(int pin, uint8_t EOT_Level)
190190
{
191191
rmt_bus_handle_t bus = _rmtGetBus(pin, __FUNCTION__);
192192
if (bus == NULL) {
@@ -197,6 +197,7 @@ void rmtSetEOT(int pin, uint8_t EOT_Level)
197197
}
198198

199199
bus->rmt_EOT_Level = EOT_Level > 0 ? 1 : 0;
200+
return true;
200201
}
201202

202203
bool rmtSetCarrier(int pin, bool carrier_en, bool carrier_level, uint32_t frequency_Hz, float duty_percent)

0 commit comments

Comments
 (0)