We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b9791 commit 50ae166Copy full SHA for 50ae166
targets/tanmatsu/badge_bsp_audio.c
@@ -9,7 +9,6 @@
9
#include "es8156.h"
10
#include "esp_check.h"
11
#include "esp_err.h"
12
-#include "freertos/projdefs.h"
13
#include "tanmatsu_coprocessor.h"
14
#include "tanmatsu_hardware.h"
15
@@ -99,7 +98,9 @@ esp_err_t bsp_audio_set_amplifier(bool enable) {
99
98
}
100
101
esp_err_t bsp_audio_get_i2s_handle(i2s_chan_handle_t* out_handle) {
102
- ESP_RETURN_ON_ERROR(ESP_ERR_INVALID_ARG, TAG, "Invalid argument");
+ if (out_handle == NULL) {
+ return ESP_ERR_INVALID_ARG;
103
+ }
104
*out_handle = i2s_handle;
105
return ESP_OK;
106
0 commit comments