Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
50:30440c9aeb7c
Parent:
49:81d5bddb02f0
Child:
56:da34fc11e760
--- a/src/d7a_alp.cpp	Fri Sep 02 16:08:09 2016 +0000
+++ b/src/d7a_alp.cpp	Mon Sep 05 13:21:50 2016 +0000
@@ -169,20 +169,20 @@
                     uint32_t length;
                     p += alp_decode_length(p, &length); // Length
                     p += length; // Data
-                    PRINT("ALP RSP ISTATUS %02X\r\n", type);
+                    DPRINT("ALP RSP ISTATUS %02X\r\n", type);
                 }
                 else
                 {
                     rsp->status[rsp->nb_status].aid = *p++; // Action ID
                     rsp->status[rsp->nb_status].status = *p++; // Status
-                    PRINT("ALP RSP STATUS[%d] aid:%d Status:%d\r\n", rsp->nb_status, rsp->status[rsp->nb_status].aid, rsp->status[rsp->nb_status].status);
+                    DPRINT("ALP RSP STATUS[%d] aid:%d Status:%d\r\n", rsp->nb_status, rsp->status[rsp->nb_status].aid, rsp->status[rsp->nb_status].status);
                     rsp->nb_status++;
                 }
                 break;
             case ALP_OPCODE_RSP_TAG:
                 rsp->tag_status = (ctrl & ~0x3F) | 0x01;
                 rsp->tag = *p++; // TAG
-                PRINT("ALP RSP TAG %d %02x\r\n", rsp->tag, rsp->tag_status);
+                DPRINT("ALP RSP TAG %d %02x\r\n", rsp->tag, rsp->tag_status);
                 break;
             case ALP_OPCODE_RSP_F_DATA:
                 uint8_t fid = *p++; // File ID
@@ -191,7 +191,7 @@
                 p += alp_decode_length(p, &(rsp->length)); // length
                 rsp->data = (uint8_t*)MALLOC(rsp->length);
                 p += d7a_alp_add(rsp->data, p, rsp->length);
-                PRINT("ALP RSP F_DATA f:%d o:%d s:%d\r\n", fid, offset, rsp->length);
+                DPRINT("ALP RSP F_DATA f:%d o:%d s:%d\r\n", fid, offset, rsp->length);
                 //dbg_print_data("DATA: ", "%02X ", (uint8_t*)rsp->data, rsp->length, "\r\n");
                 break;
             default:
@@ -476,7 +476,7 @@
         switch(pkt->id)
         {
             case KAL_COM_FLOW_AT_RESP:
-                PRINT("KAL_COM_FLOW_AT_RESP\r\n");
+                DPRINT("KAL_COM_FLOW_AT_RESP\r\n");
 
                 d7a_alp_new_pl(pkt);