Skip to content

Commit c6564f2

Browse files
Search bug fix (Love Nystrom)
1 parent 358d501 commit c6564f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

OneWire.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ please contact Paul.
1515
Version 2.3:
1616
Unknonw chip fallback mode, Roger Clark
1717
Teensy-LC compatibility, Paul Stoffregen
18+
Search bug fix, Love Nystrom
1819
1920
Version 2.2:
2021
Teensy 3.0 compatibility, Paul Stoffregen, [email protected]
@@ -456,8 +457,9 @@ uint8_t OneWire::search(uint8_t *newAddr)
456457
LastDeviceFlag = FALSE;
457458
LastFamilyDiscrepancy = 0;
458459
search_result = FALSE;
460+
} else {
461+
for (int i = 0; i < 8; i++) newAddr[i] = ROM_NO[i];
459462
}
460-
for (int i = 0; i < 8; i++) newAddr[i] = ROM_NO[i];
461463
return search_result;
462464
}
463465

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=OneWire
22
version=2.3
3-
author=Jim Studt, Tom Pollard, Robin James, Glenn Trewitt, Jason Dangel, Guillermo Lovato, Paul Stoffregen, Scott Roberts, Bertrik Sikken, Mark Tillotson, Ken Butcher, Roger Clark
3+
author=Jim Studt, Tom Pollard, Robin James, Glenn Trewitt, Jason Dangel, Guillermo Lovato, Paul Stoffregen, Scott Roberts, Bertrik Sikken, Mark Tillotson, Ken Butcher, Roger Clark, Love Nystrom
44
maintainer=Paul Stoffregen
55
sentence=Access 1-wire temperature sensors, memory and other chips.
66
paragraph=

0 commit comments

Comments
 (0)