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.cpp
- Revision:
- 81:c68a47483525
- Parent:
- 77:8c792719a1fc
- Child:
- 87:9b885d12dbb4
diff -r 30265d5dd20a -r c68a47483525 src/d7a.cpp
--- a/src/d7a.cpp Wed Dec 21 15:47:15 2016 +0000
+++ b/src/d7a.cpp Wed Dec 21 17:15:38 2016 +0000
@@ -299,12 +299,23 @@
uint8_t i = 0;
while (msg[i] != NULL)
{
- PRINT("MSG %2d ERR:%4d", i, msg[i]->err);
+ PRINT("MSG %2d ", i);
+
+ if (msg[i]->err < 0)
+ {
+ PRINT("ERROR:%5d", msg[i]->err);
+ }
+ else
+ {
+ PRINT("STATUS:%4d", msg[i]->err);
+ }
+
if (msg[i]->lb)
{
PRINT_DATA(" UID:", "%02X", msg[i]->id, 8, " ");
PRINT("LB:%3d", msg[i]->lb);
}
+
if (msg[i]->data)
{
PRINT(" FID: %3d OFF: %3d LEN: %3d", msg[i]->data->fid, msg[i]->data->offset, msg[i]->data->length);
