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:
parent
eaa245f5de
commit
8cf19e63da
@ -1,3 +1,8 @@
|
||||
BOARD_INSUFFICIENT_MEMORY := \
|
||||
arduino-duemilanove \
|
||||
arduino-nano \
|
||||
arduino-uno \
|
||||
atmega328p \
|
||||
atmega328p-xplained-mini \
|
||||
nucleo-l011k4 \
|
||||
#
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user