mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
[remote_transmitter] Avoid deprecated volatile increment in RMT done callback
This commit is contained in:
@@ -81,7 +81,7 @@ static RmtFrame *new_frame(uint32_t capacity) {
|
||||
bool IRAM_ATTR HOT RemoteTransmitterComponent::tx_done_callback(rmt_channel_handle_t channel,
|
||||
const rmt_tx_done_event_data_t *event, void *arg) {
|
||||
auto *self = static_cast<RemoteTransmitterComponent *>(arg);
|
||||
self->done_count_++;
|
||||
self->done_count_ = self->done_count_ + 1;
|
||||
self->enable_loop_soon_any_context();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user