File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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//
237237uint8_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
You can’t perform that action at this time.
0 commit comments