Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio_portaudio.c will not compile if #define DEBUG 1audio_wait in #454

Open
vk2tds opened this issue Mar 15, 2023 · 1 comment
Open

audio_portaudio.c will not compile if #define DEBUG 1audio_wait in #454

vk2tds opened this issue Mar 15, 2023 · 1 comment

Comments

@vk2tds
Copy link

vk2tds commented Mar 15, 2023

In looking for an issue, I added a define for DEBUG in audio_portaudio.c. If this is defined, the following code will not compile, as err is not defined. Removing the err helps , but I am not sure this is the correct solution

void audio_wait (int a)
{
audio_flush(a);

#if DEBUG
text_color_set(DW_COLOR_DEBUG);
dw_printf ("audio_wait(): after sync, status=%d\n", err);
#endif
} /* end audio_wait */

@vk2tds
Copy link
Author

vk2tds commented Mar 15, 2023

Also, if you #define DEBUG4 1 in demod_afsk.c, there will be an error in demos_afsk_process_sample(), with slice not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant