1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/driver_hsc: clean up use of strerror

strerror() now is provided on AVR as well, so no need to be extra
careful in its use.
This commit is contained in:
Marian Buschsieweke 2022-09-09 12:08:31 +02:00
parent eaa245f5de
commit 8cf19e63da
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
BOARD_INSUFFICIENT_MEMORY := \
arduino-duemilanove \
arduino-nano \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
nucleo-l011k4 \
#

View File

@ -42,12 +42,7 @@ int main(void)
do {
retval = hsc_init(&dev, &hsc_params[0]);
if (retval < 0) {
if (IS_USED(MODULE_NEWLIB) || IS_USED(MODULE_PICOLIBC)) {
printf("Initialization error with code: %s\n", strerror(-retval));
}
else {
puts("Initialization failed");
}
printf("Initialization error with code: %s\n", strerror(-retval));
}
xtimer_usleep(SLEEP_USEC);
} while (retval);