From a7e51b2509a7338a4375cac52be284813de543a5 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 6 Feb 2023 11:37:27 +0700 Subject: [PATCH] protocomm: fix gcc-12 compile errors --- components/protocomm/src/transports/protocomm_ble.c | 2 +- components/protocomm/src/transports/protocomm_nimble.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/protocomm/src/transports/protocomm_ble.c b/components/protocomm/src/transports/protocomm_ble.c index 90f18cc7c0..5af270353c 100644 --- a/components/protocomm/src/transports/protocomm_ble.c +++ b/components/protocomm/src/transports/protocomm_ble.c @@ -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; } diff --git a/components/protocomm/src/transports/protocomm_nimble.c b/components/protocomm/src/transports/protocomm_nimble.c index 806b8775ad..ab2b80f35d 100644 --- a/components/protocomm/src/transports/protocomm_nimble.c +++ b/components/protocomm/src/transports/protocomm_nimble.c @@ -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; }