Skip to content

Conversation

@h2zero
Copy link
Owner

@h2zero h2zero commented Dec 3, 2024

This adds a workaround to get the tx power when the function returns error due to a bug introduced in some versions of esp-idf.

  • Added error checking, return value will be 0xFF if there was an error.

@h2zero
Copy link
Owner Author

h2zero commented Dec 3, 2024

@thekurtovic Any thoughts on this?

@thekurtovic
Copy link
Collaborator

Looks good, gets the job done.
Maybe make it more specific with checks for ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0) and ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,4,0), though if a value of 0xFF should never occur outside this particular bug then maybe it's not needed.

This adds a workaround to get the tx power when the function returns error due to a bug introduced in some versions of esp-idf.

* Added error checking, return value will be 0xFF if there was an error.
@h2zero h2zero force-pushed the tx-power-workaround branch from c0db953 to 7493715 Compare December 3, 2024 17:08
@h2zero
Copy link
Owner Author

h2zero commented Dec 3, 2024

I don't see this occurring outside of the bug since we are always calling the function with a valid parameter.

@h2zero h2zero merged commit a55489f into master Dec 4, 2024
59 checks passed
@h2zero h2zero deleted the tx-power-workaround branch December 4, 2024 17:46
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.

3 participants