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.
Dependencies: modem_ref_helper DebouncedInterrupt
Diff: main.cpp
- Revision:
- 6:8e8ca94f61a4
- Parent:
- 5:c39a1bb57cf3
- Child:
- 7:93ad76eebd33
diff -r c39a1bb57cf3 -r 8e8ca94f61a4 main.cpp
--- a/main.cpp Wed Sep 20 16:54:27 2017 +0000
+++ b/main.cpp Thu Sep 21 09:14:57 2017 +0000
@@ -48,7 +48,7 @@
switch (status)
{
case ALP_ERR_NONE:
- PRINT("Status: OK\n");
+ //PRINT("Status: OK\n");
break;
case ALP_ERR_FILE_EXIST:
PRINT("Status: Already registered\n");
@@ -64,7 +64,7 @@
switch (status)
{
case ALP_ERR_NONE:
- PRINT("Resp: OK\n");
+ //PRINT("Resp: OK\n");
break;
case ALP_ERR_FILE_EXIST:
PRINT("Resp: Already registered\n");
@@ -82,12 +82,12 @@
if (terminal)
{
- //print_status(err);
+ print_status(err);
modem_resp.put((void*)MODEM_RESP_TERMINAL);
}
else
{
- //print_resp(err);
+ print_resp(err);
if (ALP_ERR_NONE == err)
{
modem_resp.put((void*)MODEM_RESP_DONE);
@@ -142,7 +142,7 @@
nb++;
PRINT("%d: XCL:%02X ", nb, istat.addressee.xcl.byte);
PRINT_DATA("UID:", "%02X", istat.addressee.id, 8, " ");
- PRINT("snr:%d lb:%d ", istat.rxlev, istat.lb);
+ PRINT("snr:%d rxlev:%d lb:%d ", istat.snr, istat.rxlev, istat.lb);
PRINT("v%d.%d.%d\n", fw_ver.major, fw_ver.minor, fw_ver.patch);
// Reset variables