Update main.c removed clock as it seemed to crash

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

@ -102,8 +102,8 @@ int main(int argc, char * argv[]) {
pclose(gpiod);
gpiod = popen("pigs m 19 5", "r"); // set PWM audio utput to GPIO 19 (pin 35)
pclose(gpiod);
gpiod = popen("pigs hc 6 12880000", "r"); // set clock to 12.88 MHz on GPIO 6 (pin 31)
pclose(gpiod);
// gpiod = popen("pigs hc 6 12880000", "r"); // set clock to 12.88 MHz on GPIO 6 (pin 31) // commented out as it seemed to crash Pi Zero
// pclose(gpiod);
// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r");
FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r");

Loading…
Cancel
Save

Powered by TurnKey Linux.