Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
45:b85384e7d825
Parent:
44:8ebe6b70f932
Child:
46:665391110051
--- a/src/d7a_fs.cpp	Tue Aug 30 17:15:31 2016 +0000
+++ b/src/d7a_fs.cpp	Thu Sep 01 09:35:27 2016 +0000
@@ -166,6 +166,12 @@
                     buf.length = g_fs_ctx.callback->write_file(req->fid, req->offset, req->length, &pkt->buffer[OP_SIZE_WR]);
                     d7a_fs_msg((uint8_t*)&buf, OP_SIZE_RETSTAT, KAL_COM_FLOW_FS_RESP);
                 }
+                else if (req->cmd == FS_OP_TOUCH)
+                {
+                    DPRINT("PS Touch f:%d o:%d s:%d\r\n", req->fid, req->offset, req->length);
+                    //buf.length = g_fs_ctx.callback->touch_file(req->fid, req->offset, req->length);
+                    d7a_fs_msg((uint8_t*)&buf, OP_SIZE_RETSTAT, KAL_COM_FLOW_FS_RESP);
+                }
                 else
                 {
                     ASSERT(false, "FS: Unsupported cmd %d\r\n", req->cmd);