Skip to content

Conversation

@estshorter
Copy link
Contributor

@estshorter estshorter commented Jan 16, 2021

I fixed the following compilation warning.

C:\Users\estshorter\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-rmt.c: In function 'rmtLoop':
C:\Users\estshorter\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-rmt.c:244:9: warning: unused variable 'channel' [-Wunused-variable]
     int channel = rmt->channel;
         ^

Note: This is already fixed in the idf-release/v4.0 and idf-release/v4.2 branches.

bool rmtLoop(rmt_obj_t* rmt, rmt_data_t* data, size_t size)
{
if (!rmt) {
return false;
}
int allocated_size = MAX_DATA_PER_CHANNEL * rmt->buffers;
if (size > allocated_size) {
return false;
}
return _rmtSendOnce(rmt, data, size, true);
}

@me-no-dev me-no-dev merged commit 55442a0 into espressif:master Jan 21, 2021
@estshorter estshorter deleted the fix_unused_variable branch January 21, 2021 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants