Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SDI12_device.h
- Revision:
- 6:d9a5240a99fd
- Parent:
- 5:e53104570fde
- Child:
- 7:1f506c65c4e8
diff -r e53104570fde -r d9a5240a99fd SDI12_device.h --- a/SDI12_device.h Wed Aug 01 17:11:44 2018 +0000 +++ b/SDI12_device.h Wed Aug 01 17:12:31 2018 +0000 @@ -29,14 +29,12 @@ question[0] = ADDRRICES[i]; sdi12.sendCommand(question); std::string response; - debug("detecting: %s\r\n", question); Timer detectTimer; detectTimer.start(); while (sdi12.RxBufferAvailable() == 0) { if (sdi12.RxInProgress()) detectTimer.reset(); if (detectTimer.read_ms() > RESPONSE_TIMEOUT) { - ++i; break; } }