added spectrometer timeout
Dependencies: SDFileSystem mbed
Fork of All_Combined_Real2 by
Diff: main.cpp
- Revision:
- 7:a125a1fa4694
- Parent:
- 6:059312376781
- Child:
- 8:6a694f87fb13
diff -r 059312376781 -r a125a1fa4694 main.cpp --- a/main.cpp Thu Mar 31 19:54:14 2016 +0000 +++ b/main.cpp Thu Mar 31 19:54:55 2016 +0000 @@ -75,7 +75,6 @@ pc.printf("\r\n"); fprintf(fpData, "\r\n"); fclose(fpData); - pc.printf("here4\r\n"); XBeeSend((const char *)data, 2048); } @@ -127,23 +126,19 @@ led = !led; -// gps_read(); - pc.printf("here\r\n"); + gps_read(); check_temp(); - pc.printf("hereagain\r\n"); // Display result pc.printf(",%s", TempCelsiusDisplay); fpData = fopen(OUTPUT_FILE, "a"); fprintf(fpData, ",%s", TempCelsiusDisplay); fclose(fpData); - pc.printf("hereagain2\r\n"); // Trigger an acquisition from spectrometer trigger = 1; wait_ms(1); trigger = 0; read_pixels(); - pc.printf("hereagain3\r\n"); wait(0.5f); } } \ No newline at end of file