Kenneth Adams
/
SCP1000_Example
Example program using the SCP1000 library.
Revision 1:6fb7e6fcbb68, committed 2010-10-20
- Comitter:
- kadams6
- Date:
- Wed Oct 20 17:51:36 2010 +0000
- Parent:
- 0:fd585132c191
- Commit message:
- Got the printf flags backwards
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fd585132c191 -r 6fb7e6fcbb68 main.cpp --- a/main.cpp Tue Oct 05 04:29:50 2010 +0000 +++ b/main.cpp Wed Oct 20 17:51:36 2010 +0000 @@ -5,6 +5,6 @@ SCP1000 scp1000(p5,p6,p7,p8); int main() { - pc.printf("The pressure is %f Pa and the temperature is %u C", scp1000.readPressure(), scp1000.readTemperature()); + pc.printf("The pressure is %d Pa and the temperature is %f C", scp1000.readPressure(), scp1000.readTemperature()); return(0); } \ No newline at end of file