We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8cc43b commit 662532bCopy full SHA for 662532b
libraries/OneWire/src/OneWire.cpp
@@ -162,7 +162,7 @@ OneWire::~OneWire() { delete mImplementation; }
162
//
163
// Returns 1 if a device asserted a presence pulse, 0 otherwise.
164
165
-uint8_t OneWire::reset(void) { mImplementation->reset(); }
+uint8_t OneWire::reset(void) { return mImplementation->reset(); }
166
167
168
// 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
235
// FALSE : device not found, end of search
236
237
uint8_t OneWire::search(uint8_t *newAddr, bool search_mode /* = true */) {
238
- mImplementation->search(newAddr, search_mode);
+ return mImplementation->search(newAddr, search_mode);
239
}
240
#endif
241
0 commit comments