diff --git a/software/healthcheck.c b/software/healthcheck.c index a3d0042..670c8aa 100644 --- a/software/healthcheck.c +++ b/software/healthcheck.c @@ -185,7 +185,7 @@ bool inmHealthCheckAddBit(bool evenBit, bool oddBit, bool even) { inmNumSequentialZeros = 0u; if(inmNumSequentialOnes > INM_MAX_SEQUENCE) { fprintf(stderr, "Maximum sequence of %d 1's exceeded\n", INM_MAX_SEQUENCE); - exit(1); + return false; } } else { inmTotalZeros++; @@ -193,7 +193,7 @@ bool inmHealthCheckAddBit(bool evenBit, bool oddBit, bool even) { inmNumSequentialOnes = 0u; if(inmNumSequentialZeros > INM_MAX_SEQUENCE) { fprintf(stderr, "Maximum sequence of %d 0's exceeded\n", INM_MAX_SEQUENCE); - exit(1); + return false; } } }