typedef nx_struct SerialReqPacket {
nx_uint8_t cmd;
nx_uint8_t imgNum;
- nx_uint16_t offset;
+ nx_uint32_t offset;
nx_uint16_t len;
nx_uint8_t data[0];
} SerialReqPacket;
switch (request->cmd) {
case CMD_ERASE: // === Erases a volume ===
state = S_ERASE;
+#if defined(PLATFORM_MICAZ) || defined(PLATFORM_IRIS) || defined(PLATFORM_EPIC)
+ error = FAIL;
+#else
error = call BlockWrite.erase[imgNum]();
+#endif
break;
case CMD_WRITE: // === Writes to a volume ===
state = S_WRITE;