Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes set pins return value in 2.0.13 #8644

Merged

Conversation

SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Sep 16, 2023

Description of Change

Fixes a lack of return value in the uartSetPins() function. It doesn't prevent to build the firmware, but prints a warning message. With this fix, the warning message won't be displayed anymore.

This issue doesn't affect the uartSetPins() function because it only happens in the case that the HAL level is used with a UART number higher than the limit, which is very improbable.

    if(uart_num >= SOC_UART_NUM) {
        log_e("Serial number is invalid, please use numers from 0 to %u", SOC_UART_NUM - 1);
        return false;
    }

Tests scenarios

Just compiling and checking that the warning message is gone.

Related links

Closes #8641

@SuGlider SuGlider added this to the 2.0.13 milestone Sep 16, 2023
@SuGlider SuGlider self-assigned this Sep 16, 2023
Copy link
Collaborator

@mrengineer7777 mrengineer7777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No other missing return statements in this file.

@VojtechBartoska VojtechBartoska modified the milestones: 2.0.13, 3.0.0 Sep 27, 2023
@P-R-O-C-H-Y P-R-O-C-H-Y added the Status: Pending Merge Pull Request is ready to be merged label Oct 4, 2023
@me-no-dev me-no-dev merged commit a17c673 into espressif:release/v2.x Oct 5, 2023
45 checks passed
@SuGlider SuGlider mentioned this pull request Oct 11, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Peripheral: UART Status: Pending Merge Pull Request is ready to be merged
Projects
Development

Successfully merging this pull request may close these issues.

esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
5 participants