Helper library to use modem_ref driver.

Dependencies:   WizziCom WizziDebug ram_fs modem_ref

Dependents:   D7A_Localisation D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_CodeUpgradeProtocol D7A_1x_demo_LoRaWAN ... more

Revision:
70:753b602bd7bd
Parent:
69:8f2fe2426ef9
Child:
71:b5c584f706ee
--- a/modem_d7a.cpp	Fri Jan 29 16:37:08 2021 +0000
+++ b/modem_d7a.cpp	Tue Feb 16 09:30:27 2021 +0000
@@ -22,7 +22,7 @@
 {
     (void)id;
     
-    HELPER_PRINT("CB EOP:%d ERR:%d ID:%d\n", terminal, err, id);
+    //PRINT("CB EOP:%d ERR:%d ID:%d\n", terminal, err, id);
 
     if (terminal)
     {
@@ -254,6 +254,9 @@
 {
     u8 id = modem_ref_get_id(modem_cb);
     int err = ALP_ERR_UNKNOWN;
+    
+    // Make sure Semaphore is taken
+    g_s[id].try_acquire();
 
     // Setup LoRaWAN URCs
     modem_ref_alp(itf, alp, alp_rsp, id);