summaryrefslogtreecommitdiff
path: root/apps/system/zmodem/zm.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/zmodem/zm.h')
-rw-r--r--apps/system/zmodem/zm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/system/zmodem/zm.h b/apps/system/zmodem/zm.h
index 2dbafc9e4..1f8201469 100644
--- a/apps/system/zmodem/zm.h
+++ b/apps/system/zmodem/zm.h
@@ -210,6 +210,12 @@
#define ZM_XFRDONE 1 /* Success - Transfer complete */
+/* The actual packet buffer size includes 5 bytes to hold the transfer type
+ * and the maxmimum size 4-byte CRC.
+ */
+
+#define ZM_PKTBUFSIZE (CONFIG_SYSTEM_ZMODEM_PKTBUFSIZE + 5)
+
/* Debug Definitions ********************************************************/
/* Non-standard debug selectable with CONFIG_DEBUG_ZMODEM. Debug output goes
@@ -347,7 +353,7 @@ struct zm_state_s
*/
uint8_t rcvbuf[CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE];
- uint8_t pktbuf[CONFIG_SYSTEM_ZMODEM_PKTBUFSIZE];
+ uint8_t pktbuf[ZM_PKTBUFSIZE];
uint8_t scratch[CONFIG_SYSTEM_ZMODEM_SNDBUFSIZE];
};