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:
- 20:88e137b9ea46
- Parent:
- 19:a259bc128867
- Child:
- 21:ea68a8a3cea4
--- a/Picaso_4DGL-32PTU_Response.cpp Thu Sep 15 13:31:53 2016 +0000
+++ b/Picaso_4DGL-32PTU_Response.cpp Mon Sep 26 10:51:02 2016 +0000
@@ -217,3 +217,28 @@
return false;
}
}
+
+//**************************************************************************
+bool PICASO_4DGL :: fileMountResponse() {
+
+#if DEBUGMODE
+ pc.printf("\n\r DEBUG: Wait for answer");
+#endif
+
+ 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[2] > 0) {
+ index = 0; // set buffer index to 0
+ return true;
+ }
+ else {
+ index = 0;
+ return false;
+ }
+}
+