Skip to content

Commit a1b6b29

Browse files
committed
libraries/OneWire: Fix missing return values for two functions to avoid warnings during compilation.
1 parent a8cc43b commit a1b6b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/OneWire/src/OneWire.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ OneWire::~OneWire() { delete mImplementation; }
162162
//
163163
// Returns 1 if a device asserted a presence pulse, 0 otherwise.
164164
//
165-
uint8_t OneWire::reset(void) { mImplementation->reset(); }
165+
uint8_t OneWire::reset(void) { return mImplementation->reset(); }
166166

167167
//
168168
// Write a bit. Port and bit is used to cut lookup time and provide
@@ -235,7 +235,7 @@ void OneWire::target_search(uint8_t family_code) { mImplementation->target_searc
235235
// FALSE : device not found, end of search
236236
//
237237
uint8_t OneWire::search(uint8_t *newAddr, bool search_mode /* = true */) {
238-
mImplementation->search(newAddr, search_mode);
238+
return mImplementation->search(newAddr, search_mode);
239239
}
240240
#endif
241241

0 commit comments

Comments
 (0)