kludge for musl
This commit is contained in:
parent
a47b19faa6
commit
c5739314d3
3
baud.c
3
baud.c
|
@ -55,6 +55,9 @@ main(int argc, char *argv[]) {
|
||||||
noiselen = atoi(argv[3]);
|
noiselen = atoi(argv[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In musl, the first value is 0
|
||||||
|
rand();
|
||||||
|
|
||||||
int cps = baud / 10; // 8N1 has 10 bits per octet: 8 data, 1 start, 1 parity
|
int cps = baud / 10; // 8N1 has 10 bits per octet: 8 data, 1 start, 1 parity
|
||||||
int delay = SECOND / cps;
|
int delay = SECOND / cps;
|
||||||
int noisybits = 0;
|
int noisybits = 0;
|
||||||
|
|
Loading…
Reference in New Issue