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.
Dependents: modem_ref_helper_for_v5_3_217
Diff: src/modem_ref.cpp
- Revision:
- 26:2c934a269914
- Parent:
- 25:14c01b9fc04d
- Child:
- 31:517fc900afba
--- a/src/modem_ref.cpp Tue Feb 27 11:05:38 2018 +0000
+++ b/src/modem_ref.cpp Mon Mar 05 09:55:27 2018 +0000
@@ -74,13 +74,13 @@
int id = -1;
s8 err = ALP_ERR_NONE;
u8 eop;
- REF_PRINT("input 0x%x/%d Bytes\n",flowid,size);
+ //REF_PRINT("input 0x%x/%d Bytes\n",flowid,size);
switch (flowid)
{
case WC_FLOW_ALP_UNS:
case WC_FLOW_ALP_CMD:
rem -= alp_parse_chunk(&p, &r);
- //PRINT_DATA("", "%02X", p, rem, "\n");
+ //REF_PRINT("Rem %d Bytes\n", rem);
// This should always be a TAG'ed request in case of FS access...
if (r.type == ALP_OPCODE_TAG)
{
@@ -88,18 +88,15 @@
while(rem>0)
{
// Parse File Operation
- rem -= alp_parse_chunk(&p, &r);;
- REF_PRINT("ALP OP[%d] rem %d\n", r.type, rem);
+ rem -= alp_parse_chunk(&p, &r);
+ //REF_PRINT("ALP OP[%d]\n",r.type);
switch (r.type)
{
case ALP_OPCODE_F_RD_DATA:
- ASSERT((ALP_ACTION_RSP_TAG_SIZE + ALP_ACTION_RSP_F_DATA_SIZE_MAX(r.meta.f_data.length)) < 256,
- "F_RD_DATA too big for serial protocol (%d/%dmax)", r.meta.f_data.length, 255 - (ALP_ACTION_RSP_TAG_SIZE + ALP_ACTION_RSP_F_DATA_SIZE_MAX(0)));
g_modem.cb->read(r.meta.f_data.fid,r.meta.f_data.offset,r.meta.f_data.length,id);
break;
case ALP_OPCODE_F_WR_DATA:
- REF_PRINT("ALP_OPCODE_F_WR_DATA[%d] %d %d %d\n", id, r.meta.f_data.fid, r.meta.f_data.offset, r.meta.f_data.length);
- g_modem.cb->write(r.meta.f_data.fid, r.data, r.meta.f_data.offset, r.meta.f_data.length, id);
+ g_modem.cb->write(r.meta.f_data.fid,r.data,r.meta.f_data.offset,r.meta.f_data.length,id);
break;
case ALP_OPCODE_F_RD_PROP:
g_modem.cb->read_fprop(r.meta.f_data.fid,id);
@@ -114,9 +111,9 @@
ASSERT(false,"ASSERT: Unsupported ALP File Operation: %d\n",r.type);
break;
}
- REF_PRINT("ALP Parsing done. rem %d\n", rem);
+ //REF_PRINT("ALP Parsing done. rem %d\n", rem);
}
- REF_PRINT("ALP Packet done.\n");
+ //REF_PRINT("ALP Packet done.\n");
}
else
{