Hello everybody, I'm new to this forum, hopefully it doesn't shine a bad light on me that my first post is one asking for help...
Anyway, I'm quite new to C, but can normally manage to work around any small problems I have on my own, however today my brain doesn't seem to be functioning. I can't figure out what's wrong here:
Code:
#include "aservelibs/aservelib.h"
#include <stdio.h>
#include <math.h>
/**/
int main ()
{
float frequency;
scanf("%f", &frequency);
while (frequency <= 20000)
{
printf("frequency");
aserveOscillator(0, frequency, 1.0, 0);
aserveSleep(500);
}
else
{
aserveOscillator(0, 0, 0, 0);
}
return 0;
}
I was wondering if anyone could point me in the right direction?
Thanks in advance for any help.
I'm a fool. Please disregard this post!
Looked back at it after a short break and kicked myself. Oh well.