added spectrometer timeout
Dependencies: SDFileSystem mbed
Fork of All_Combined_Real2 by
Diff: temp_sensor.cpp
- Revision:
- 12:2df303e4aee2
- Parent:
- 9:924d80730ac5
--- a/temp_sensor.cpp Tue Apr 12 01:35:06 2016 +0000 +++ b/temp_sensor.cpp Tue Apr 12 18:13:57 2016 +0000 @@ -80,10 +80,10 @@ TempCelsiusDisplay[3] = ((tempval % 100) % 10) + 0x30; if (TempCelsiusDisplay[0] == '+') { - sscanf(TempCelsiusDisplay, "+%lf C", &tempCelsiusDouble); + sscanf((const char *)TempCelsiusDisplay, "+%lf C", &tempCelsiusDouble); } else { // negative - sscanf(TempCelsiusDisplay, "%lf C", &tempCelsiusDouble); + sscanf((const char *)TempCelsiusDisplay, "%lf C", &tempCelsiusDouble); } }