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.
Fork of d7a_1x by
Diff: src/d7a_com.cpp
- Revision:
- 44:8ebe6b70f932
- Parent:
- 43:28202405094d
- Parent:
- 42:1578f0480dcb
- Child:
- 45:b85384e7d825
--- a/src/d7a_com.cpp Tue Aug 30 16:59:12 2016 +0000
+++ b/src/d7a_com.cpp Tue Aug 30 17:15:31 2016 +0000
@@ -309,6 +309,24 @@
}
}
+
+void d7a_com_print_stats(void)
+{
+ PRINT("State: %d\r\n", g_com_ctx.state);
+ PRINT("Data: %d\r\n", g_com_ctx.data_available);
+
+#if 0
+ if (g_com_ctx.data_available)
+ {
+ uint8_t* temp = (uint8_t*)MALLOC(g_com_ctx.data_available);
+ d7a_com_copy_to_linear(temp, g_com_ctx.read_idx, g_com_ctx.data_available);
+ PRINT_DATA("", "%02X ", temp, g_com_ctx.data_available, "\r\n");
+ FREE(temp);
+ }
+#endif
+}
+
+
/**
Wakes-up modem and send data throught Serial.
