summaryrefslogtreecommitdiff
path: root/lib/onewire.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/onewire.h')
-rw-r--r--lib/onewire.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/onewire.h b/lib/onewire.h
index 21be0af..0cbd2a4 100644
--- a/lib/onewire.h
+++ b/lib/onewire.h
@@ -3,7 +3,7 @@
#include <inttypes.h>
#include <stdbool.h>
-#include <avr/pgmspace.h>
+#include <avr/pgmspace.h>
// You can exclude certain features from OneWire. In theory, this
// might save some space. In practice, the compiler automatically
@@ -103,7 +103,7 @@
#error "Please define I/O register types here"
#endif
-#define DS1820_FAMILY_ID 0x10
+#define DS1820_FAMILY_ID 0x10
#define DS1820_START_CONVERSION 0x44
#define DS1820_READ_SCRATCHPAD 0xbe
#define DS1820_WRITE_SCRATCHPAD 0x4e
@@ -127,7 +127,7 @@
#define DS2890_WRITE_POSITION 0x0f
#ifndef _BV
-#define _BV(bit) (1 << (bit))
+#define _BV(bit) (1 << (bit))
#endif
void owi_init(uint8_t pin, volatile IO_REG_TYPE *pin_read_port);
@@ -199,8 +199,8 @@ uint8_t owi_crc8(const uint8_t *addr, uint8_t len);
// ReadBytes(net, buf+3, 10); // Read 6 data bytes, 2 0xFF, 2 CRC16
// if (!CheckCRC16(buf, 11, &buf[11])) {
// // Handle error.
-// }
-//
+// }
+//
// @param input - Array of bytes to checksum.
// @param len - How many bytes to use.
// @param inverted_crc - The two CRC16 bytes in the received data.