Fork to fix compiler warnings.
Fork of DS1820 by
Diff: DS1820.cpp
- Revision:
- 16:794fb9d6a4ee
- Parent:
- 15:236eb8f8e73a
- Child:
- 17:eeb0edf0d2d5
--- a/DS1820.cpp Sat Mar 11 20:35:59 2017 +0000 +++ b/DS1820.cpp Mon Jan 29 23:24:28 2018 +0100 @@ -59,7 +59,7 @@ DS1820::~DS1820 (void) { node *tmp; - for(int i=1; i<=probes.length(); i++) + for(uint32_t i=1; i<=probes.length(); i++) { tmp = probes.pop(i); if (tmp->data == this) @@ -146,7 +146,8 @@ int descrepancy_marker, ROM_bit_index; bool return_value, Bit_A, Bit_B; - char byte_counter, bit_mask; + char bit_mask; + int byte_counter; return_value=false; while (!DS1820_done_flag) {