Update main.c removed & and added sleep 2

beta-dw-pigpio
Alan Johnston 2 years ago committed by GitHub
parent eb380c1230
commit 0fe61043b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -554,12 +554,13 @@ int main(int argc, char * argv[]) {
other_max[i] = -1000.0;
}
FILE * gpiod = popen("sudo pigpiod &", "r"); // start gpiod
FILE * gpiod = popen("sudo pigpiod", "r"); // start gpiod
sleep(2);
pclose(gpiod);
sleep(2); // moved to later in startup
FILE * pigs = popen("pigs m 12 0 &", "r"); // set PWM audio utput to GPIO 12 (pin 32)
FILE * pigs = popen("pigs m 12 0", "r"); // set PWM audio utput to GPIO 12 (pin 32)
sleep(2);
pclose(pigs);

Loading…
Cancel
Save

Powered by TurnKey Linux.