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.
Diff: DRIVERS/CHEM_BOX_COMMON.cpp
- Revision:
- 1:d64ac853223c
- Parent:
- 0:7798270c1f52
- Child:
- 2:73a028278c5c
--- a/DRIVERS/CHEM_BOX_COMMON.cpp	Sat Jan 25 19:10:17 2014 +0000
+++ b/DRIVERS/CHEM_BOX_COMMON.cpp	Thu Aug 06 15:02:29 2015 +0000
@@ -358,7 +358,7 @@
     if(Channel > 1)
         Channel = 1;
 
-    return (((float)(ReadRawADC(Channel + 7)) /4095.0) * 5.0) / 240;
+    return (((float)(ReadRawADC(Channel + 7)) /4095.0) * 5.0) / 82;
     
 }
 
@@ -664,7 +664,7 @@
         for(Channel = 0;Channel<=1;Channel++)
         {
             Data =  Read4to20(Channel);
-            PC.printf("4TO20:%d:%.3f\r\n",Channel,Data);
+            PC.printf("4TO20:%d:%.5f\r\n",Channel,Data);
         }
       
     }
    