pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent 2590c31b7e
commit 3531bab3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -495,7 +495,7 @@ int main(int argc, char * argv[]) {
}
if (payload == ON) {
printf("\nPayload is present!\n");
sleep(1); // delay to give payload time to get ready
sleep(1.5); // delay to give payload time to get ready
}
else
printf("\nPayload not present!\n");
@ -623,10 +623,10 @@ int main(int argc, char * argv[]) {
bufLen, bufLen / (samples * frameCnt), bitRate, bufLen / (samples * frameCnt * bitRate), samplePeriod);
sin_samples = S_RATE/freq_Hz;
printf("Sin map: ");
// printf("Sin map: ");
for (int j = 0; j < sin_samples; j++) {
sin_map[j] = (short int)(amplitude * sin((float)(2 * M_PI * j / sin_samples)));
printf(" %d", sin_map[j]);
// printf(" %d", sin_map[j]);
}
printf("\n");
}

Loading…
Cancel
Save

Powered by TurnKey Linux.