Data reception demo.
Dependencies: modem_ref_helper CRC
Diff: modem_callbacks.cpp
- Revision:
- 12:404a3ca64a44
- Parent:
- 9:72a15235e097
- Child:
- 15:e90cc8e37c4d
--- a/modem_callbacks.cpp Thu Oct 11 14:46:39 2018 +0000 +++ b/modem_callbacks.cpp Fri Aug 02 15:56:17 2019 +0000 @@ -16,7 +16,7 @@ } else { - modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); + modem_respond(ALP_ERR_FILE_NOT_FOUND, id); } } @@ -24,12 +24,12 @@ { if (!ram_fs_write(fid, offset, length, (uint8_t*)data)) { - modem_respond(0, ALP_ERR_NONE, id); + modem_respond(ALP_ERR_NONE, id); g_file_modified.put((void*)fid); } else { - modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); + modem_respond(ALP_ERR_FILE_NOT_FOUND, id); } } @@ -43,19 +43,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, (ram_fs_delete(fid))? ALP_ERR_FILE_NOT_FOUND : ALP_ERR_NONE, id); + modem_respond((ram_fs_delete(fid))? ALP_ERR_FILE_NOT_FOUND : ALP_ERR_NONE, id); } void my_udata(void *data, u32 length)