added reset gpsd at the start

bp-new
alanbjohnston 5 years ago committed by GitHub
parent ecd67e31e9
commit db6c3fcd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,9 @@ int main(int argc, char * argv[]) {
FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r");
pclose(file_deletes);
FILE * gpsd_reset = popen("sudo killall gpsd && sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock", "r");
pclose(rpitx_reset);
printf("Test bus 1\n");
fflush(stdout);
i2c_bus1 = (test_i2c_bus(1) != -1) ? 1 : OFF;

Loading…
Cancel
Save

Powered by TurnKey Linux.