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:
commit
63062aaf63
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user