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: main.cpp
- Revision:
- 3:29454cac7930
- Parent:
- 2:c99c596be3d1
- Child:
- 4:2945afce4322
diff -r c99c596be3d1 -r 29454cac7930 main.cpp
--- a/main.cpp Tue Nov 11 16:16:34 2014 +0000
+++ b/main.cpp Tue Nov 11 16:39:29 2014 +0000
@@ -72,14 +72,16 @@
dlms.send_packet ("\r\nDLMS Test 1 \r\n", 16);
break;
}
- debugger.printf (">> %c 0x%02X ret_irq_count = %ld\r\n", ch, ch, dlms.ret_irq_count());
+ debugger.printf (">> %c 0x%02X IRQ rxcount=%5ld txcount=%5ld\r\n", ch, ch,
+ dlms.ret_rx_irq_count(),
+ dlms.ret_tx_irq_count());
}
-// if (dlms.char_available())
-// {
-// debugger.printf("Rx Char ");
-// debugger.printf("%c\r\n", dlms.get_char());
-// }
-// dlms.poll_rs485();
+ if (dlms.char_available())
+ {
+ debugger.printf("Rx Char ");
+ debugger.printf("%c\r\n", dlms.get_char());
+ }
+ dlms.poll_rs485();
}
while (1);
}