1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
19854: cpu/esp_common: esp-wifi: drop assert(val) r=benpicco a=benpicco



19858: tests/drivers/shtcx: don't repeat last string on error r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
This commit is contained in:
bors[bot] 2023-08-02 20:50:36 +00:00 committed by GitHub
commit 63062aaf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -20,6 +20,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#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);