Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
}
}
