protocomm: fix gcc-12 compile errors

This commit is contained in:
Alexey Lapshin 2023-02-06 11:37:27 +07:00
parent 75642ca07a
commit a7e51b2509
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}