Working version for L-tek FF1705
Diff: DS1820.cpp
- Revision:
- 14:b02fa18b294a
- Parent:
- 13:b593a82ce790
- Child:
- 17:9ff584b9809f
--- a/DS1820.cpp Wed Oct 28 18:05:51 2015 +0000
+++ b/DS1820.cpp Sun Jan 20 10:11:31 2019 +0000
@@ -320,7 +320,7 @@
*p_word = *p_word &~1; // 11bit resolution, max conversion time = 375ms
// Convert the raw bytes to a 16bit signed fixed point value :
- // 1 sign bit, 7 integer bits, 8 fractional bits (two's compliment
+ // 1 sign bit, 7 integer bits, 8 fractional bits (two's complement
// and the LSB of the 16bit binary number represents 1/256th of a unit).
*p_word = *p_word << 4;
// Convert to floating point value
@@ -336,7 +336,7 @@
* @brief Converts a 16-bit signed fixed point value to floating point value
* @note The 16-bit unsigned integer represnts actually
* a 16-bit signed fixed point value:
- * 1 sign bit, 7 integer bits, 8 fractional bits (two’s compliment
+ * 1 sign bit, 7 integer bits, 8 fractional bits (two’s complement
* and the LSB of the 16-bit binary number represents 1/256th of a unit).
* @param 16-bit unsigned integer
* @retval Floating point value