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:
- 8:1beed160ed13
- Parent:
- 7:1f506c65c4e8
- Child:
- 9:a3062b9e4324
diff -r 1f506c65c4e8 -r 1beed160ed13 SDI12_device.h
--- a/SDI12_device.h Wed Aug 01 17:29:51 2018 +0000
+++ b/SDI12_device.h Wed Aug 01 17:30:19 2018 +0000
@@ -30,7 +30,7 @@
question[0] = ADDRRICES[i];
sdi12.sendCommand(question);
std::string response;
- debug("SEARCHING: %d\r\n", i);
+// debug("SEARCHING: %d\r\n", i);
Timer detectTimer;
detectTimer.start();
while (detectTimer.read_ms() < RESPONSE_TIMEOUT) {
@@ -41,16 +41,11 @@
sdi12.getRxBuffer(buffer);
// if first char is valid address char
if (ADDRRICES.find(buffer[0])) {
-// if (buffer[0] >= '0' && buffer[0] <= '9' ||
-// buffer[0] >= 'a' && buffer[0] <= 'z' ||
-// buffer[0] >= 'A' && buffer[0] <= 'Z') {
indices[found++] = buffer[0];
- debug("FOUND: %d -> %c\r\n", i, indices[found-1]);
+// debug("FOUND: %d -> %c\r\n", i, indices[found-1]);
}
-
}
}
-
}
return found;
};