mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/periph_random: let build fail w/o RANDOM
This commit is contained in:
parent
3b52057fe5
commit
d9dd5b1913
@ -24,9 +24,6 @@
|
||||
#include <periph/random.h>
|
||||
#include <periph_conf.h>
|
||||
|
||||
/* only compile test if a random number generator is defined */
|
||||
#if RANDOM_NUMOF
|
||||
|
||||
#define LIMIT (20U)
|
||||
|
||||
int main(void)
|
||||
@ -66,14 +63,3 @@ int main(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("Random number generator low-level driver test");
|
||||
puts("There is no (pseudo) random generator implementation for your platform");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* RANDOM_NUMOF */
|
||||
|
Loading…
Reference in New Issue
Block a user