mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
protocomm: fix gcc-12 compile errors
This commit is contained in:
parent
75642ca07a
commit
a7e51b2509
@ -484,7 +484,7 @@ static void protocomm_ble_cleanup(void)
|
||||
|
||||
esp_err_t protocomm_ble_start(protocomm_t *pc, const protocomm_ble_config_t *config)
|
||||
{
|
||||
if (!pc || !config || !config->device_name || !config->nu_lookup) {
|
||||
if (!pc || !config || !config->nu_lookup) {
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
|
||||
|
@ -844,7 +844,7 @@ static void free_gatt_ble_misc_memory(simple_ble_cfg_t *ble_config)
|
||||
|
||||
esp_err_t protocomm_ble_start(protocomm_t *pc, const protocomm_ble_config_t *config)
|
||||
{
|
||||
if (!pc || !config || !config->device_name || !config->nu_lookup) {
|
||||
if (!pc || !config || !config->nu_lookup) {
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user