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.
Fork of LM75B by
Revision 2:1d73b9205f1b, committed 2016-02-03
- Comitter:
- co657_frmb
- Date:
- Wed Feb 03 02:15:03 2016 +0000
- Parent:
- 1:6a70c9303bbe
- Commit message:
- a small update perhaps
Changed in this revision
LM75B.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6a70c9303bbe -r 1d73b9205f1b LM75B.cpp --- a/LM75B.cpp Fri Oct 26 21:40:51 2012 +0000 +++ b/LM75B.cpp Wed Feb 03 02:15:03 2016 +0000 @@ -22,5 +22,5 @@ i2c.write( LM75B_ADDR, cmd, 1); // Send command string i2c.read( LM75B_ADDR, cmd, 2); // Send command string - return ( float((cmd[0]<<8)|cmd[1]) / 256.0 ); + return ( float((cmd[0]<<8)|cmd[1]) / (float)256.0 ); }