mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 18:43:50 +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 := \
|
BOARD_INSUFFICIENT_MEMORY := \
|
||||||
|
arduino-duemilanove \
|
||||||
|
arduino-nano \
|
||||||
|
arduino-uno \
|
||||||
|
atmega328p \
|
||||||
|
atmega328p-xplained-mini \
|
||||||
nucleo-l011k4 \
|
nucleo-l011k4 \
|
||||||
#
|
#
|
||||||
|
|||||||
@ -42,12 +42,7 @@ int main(void)
|
|||||||
do {
|
do {
|
||||||
retval = hsc_init(&dev, &hsc_params[0]);
|
retval = hsc_init(&dev, &hsc_params[0]);
|
||||||
if (retval < 0) {
|
if (retval < 0) {
|
||||||
if (IS_USED(MODULE_NEWLIB) || IS_USED(MODULE_PICOLIBC)) {
|
printf("Initialization error with code: %s\n", strerror(-retval));
|
||||||
printf("Initialization error with code: %s\n", strerror(-retval));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
puts("Initialization failed");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
xtimer_usleep(SLEEP_USEC);
|
xtimer_usleep(SLEEP_USEC);
|
||||||
} while (retval);
|
} while (retval);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user