Dash7Board Code Upgrade Protocol demonstration code.

Dependencies:   modem_ref_helper CRC

Revision:
7:bfe920ee44f2
Parent:
3:cfe26c2bb78b
Child:
8:6b7d38139b43
--- a/modem_callbacks.cpp	Tue Oct 16 15:24:09 2018 +0000
+++ b/modem_callbacks.cpp	Tue Aug 20 13:55:45 2019 +0000
@@ -20,7 +20,7 @@
     
     if (ram_fs_read(fid, offset, length, data))
     {
-        modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id);
+        modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
     }
     else
     {
@@ -60,11 +60,11 @@
 
         g_file_modified.put(touch);
 
-        modem_respond(0, ALP_ERR_NONE, id);
+        modem_respond(ALP_ERR_NONE, id);
     }
     else
     {
-        modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id);
+        modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
     }
 }
 
@@ -78,19 +78,19 @@
     }
     else
     {
-        modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id);
+        modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
     }
 }
 
 void my_flush(u8 fid, int id)
 {
     // No flush in this file system
-    modem_respond(0, ALP_ERR_NONE, id);
+    modem_respond(ALP_ERR_NONE, id);
 }
 
 void my_delete(u8 fid, int id)
 {
-    modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id);
+    modem_respond(ALP_ERR_FILE_NOT_FOUND, id);
 }
 
 void my_udata(void *data, u32 length)