ack/plat/cpm/libsys/cpm_read_random_safe.c
2019-06-16 19:04:17 +02:00

11 lines
178 B
C

#include <string.h>
#include <cpm.h>
uint8_t cpm_read_random_safe(FCB* fcb)
{
uint8_t r = cpm_read_random(fcb);
if ((r == 1) || (r == 4))
r = 0;
return r;
}