We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ea547 commit 8cf35e8Copy full SHA for 8cf35e8
src/sfeQwiicUltrasonic.cpp
@@ -35,6 +35,7 @@ sfeTkError_t sfeQwiicUltrasonic::getDistace(uint16_t &distance)
35
uint8_t rawData[2] = {0, 0};
36
37
// Attempt to read the distance
38
+ sfeTkError_t err = _theBus->write(kQwiicUltrasonicRegisterTrigger, rawData, 2, bytesRead);
39
sfeTkError_t err = _theBus->readRegisterRegion(kQwiicUltrasonicRegisterTrigger, rawData, 2, bytesRead);
40
41
// Check whether the read was successful
0 commit comments