From 94771f95aec884ce780041703bcaba0073c60afb Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 1 Aug 2023 23:06:11 +0200 Subject: [PATCH 1/2] cpu/esp_common: esp-wifi: drop assert(val) --- cpu/esp_common/esp-wifi/esp_wifi_netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cpu/esp_common/esp-wifi/esp_wifi_netdev.c b/cpu/esp_common/esp-wifi/esp_wifi_netdev.c index 2602ea9f22..c84e0d0382 100644 --- a/cpu/esp_common/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp_common/esp-wifi/esp_wifi_netdev.c @@ -742,7 +742,6 @@ static int _esp_wifi_get(netdev_t *netdev, netopt_t opt, void *val, size_t max_l ESP_WIFI_DEBUG("%s %p %p %u", netopt2str(opt), netdev, val, max_len); assert(netdev != NULL); - assert(val != NULL); #ifndef MODULE_ESP_WIFI_AP esp_wifi_netdev_t* dev = container_of(netdev, esp_wifi_netdev_t, netdev); From df79422dce61a9b79df0263bd99fadefe1c7381f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 2 Aug 2023 15:58:05 +0200 Subject: [PATCH 2/2] tests/drivers/shtcx: don't repeat last string on error --- tests/drivers/shtcx/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/drivers/shtcx/main.c b/tests/drivers/shtcx/main.c index 5caddee803..8b603caa23 100644 --- a/tests/drivers/shtcx/main.c +++ b/tests/drivers/shtcx/main.c @@ -20,6 +20,7 @@ */ #include #include +#include #include "timex.h" #include "ztimer.h" @@ -51,6 +52,9 @@ int main(void) len = fmt_s16_dfp(str_hum, hum, -2); str_hum[len] = '\0'; + } else { + strcpy(str_temp, "ERROR"); + strcpy(str_hum, "ERROR"); } /* print values to STDIO */ printf("Temperature [°C]: %s\n", str_temp);