
test
Diff: JSN_SR04/JSN_SR04.cpp
- Revision:
- 4:f6e22dd39313
- Parent:
- 0:d383e2dee0f7
--- a/JSN_SR04/JSN_SR04.cpp Tue Jul 07 15:02:22 2020 +0000 +++ b/JSN_SR04/JSN_SR04.cpp Sat Jul 18 14:59:04 2020 +0000 @@ -81,7 +81,7 @@ void JSN_SR04::startMeasurement() { // Trigger the sensor (by a signal described in the datasheet) trigger = 1; - triggerTimeout.attach_us(this, &JSN_SR04::turnOffTrigger, 10); + triggerTimeout.attach_us(this, &JSN_SR04::turnOffTrigger, 100); // Start to measure a response echo.rise(this, &JSN_SR04::startTimer);