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: Picaso_4DGL-32PTU_Response.cpp
- Revision:
- 18:829f3e2c064c
- Parent:
- 17:5bf7947c3c19
- Child:
- 19:a259bc128867
--- a/Picaso_4DGL-32PTU_Response.cpp Thu Sep 15 12:28:47 2016 +0000
+++ b/Picaso_4DGL-32PTU_Response.cpp Thu Sep 15 12:40:48 2016 +0000
@@ -171,20 +171,20 @@
}
//**************************************************************************
-bool PICASO_4DGL :: readByteResponse(int count) {
+bool PICASO_4DGL :: readResponse() {
#if DEBUGMODE
pc.printf("\n\r DEBUG: Wait for answer");
#endif
- while (index < count) wait_ms(100); // wait for screen answer
+ while (index < 3) wait_ms(100); // wait for screen answer
#if DEBUGMODE
pc.printf("\n\r DEBUG: Answer = ");
pc.printf("%02X %02X %02X\n\r", rxBuf[0], rxBuf[1], rxBuf[2]);
#endif
- if (rxBuf[0] == 6) {
+ if (rxBuf[0] == ACK) {
index = 0; // set buffer index to 0
return true;
}