Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
71:f03727ff0f99
Parent:
70:07b378285c95
Child:
74:30180585b09e
--- a/src/d7a_alp.cpp	Thu Nov 03 10:56:17 2016 +0000
+++ b/src/d7a_alp.cpp	Wed Nov 09 10:49:58 2016 +0000
@@ -29,7 +29,7 @@
     FPRINT("\r\n");
 
     g_alp_ctx.uns_msg = uns_msg;
-    g_alp_ctx.thread = new Thread(d7a_alp_thread, NULL, osPriorityHigh, DEFAULT_STACK_SIZE*4);
+    g_alp_ctx.thread = new Thread(d7a_alp_thread, NULL, osPriorityHigh, DEFAULT_STACK_SIZE*8);
     
     return D7A_ERR_NONE;
 }
@@ -52,7 +52,7 @@
 static void d7a_alp_new_pl(d7a_com_rx_msg_t* pl)
 {
     FPRINT("\r\n");
-    ASSERT(g_alp_ctx.pl_queue.put(pl) == osOK, "ALP OP queue full!\r\n");
+    ASSERT(g_alp_ctx.pl_queue.put(pl) == osOK, "ALP PL queue full!\r\n");
 }
 
 static d7a_com_rx_msg_t* d7a_alp_wait_pkt(uint32_t millisec)
@@ -270,11 +270,11 @@
     return (uint32_t)(p - t);
 }
 
-static uint32_t d7a_alp_forward_action(uint8_t* p, alp_d7a_itf_t* itf, bool resp)
+static uint32_t d7a_alp_forward_action(uint8_t* p, d7a_itf_t* itf, bool resp)
 {
     uint8_t* t = p;
     
-    uint32_t itf_size = sizeof(alp_d7a_itf_t);
+    uint32_t itf_size = sizeof(d7a_itf_t);
     switch (itf->cfg.addressee.ctrl.bf.idf)
     {
         case D7A_ID_NBID:
@@ -485,7 +485,7 @@
     if (addressee)
     {
         // Construct interface
-        alp_d7a_itf_t itf = {
+         d7a_itf_t itf = {
             // Dash7 interface
             .type = 0xD7,
             // Switch response type if broadcast
@@ -570,7 +570,7 @@
     if (addressee)
     {
         // Construct interface
-        alp_d7a_itf_t itf = {
+        d7a_itf_t itf = {
             // Dash7 interface
             .type = 0xD7,
             // Switch response type if broadcast
@@ -657,7 +657,7 @@
     if (addressee)
     {
         // Construct interface
-        alp_d7a_itf_t itf = {
+        d7a_itf_t itf = {
             // Dash7 interface
             .type = 0xD7,
             // Switch response type if broadcast