summaryrefslogtreecommitdiffstats
path: root/src/target/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware')
-rw-r--r--src/target/firmware/comm/msgb.c2
-rw-r--r--src/target/firmware/include/comm/sercomm_cons.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/comm/msgb.c b/src/target/firmware/comm/msgb.c
index 51f00ff5..499060c3 100644
--- a/src/target/firmware/comm/msgb.c
+++ b/src/target/firmware/comm/msgb.c
@@ -35,7 +35,7 @@ void *tall_msgb_ctx;
#ifdef NO_TALLOC
/* This is a poor mans static allocator for msgb objects */
-#define MSGB_DATA_SIZE 256
+#define MSGB_DATA_SIZE 256+4
#define MSGB_NUM 16
struct supermsg {
uint8_t allocated;
diff --git a/src/target/firmware/include/comm/sercomm_cons.h b/src/target/firmware/include/comm/sercomm_cons.h
index 9682a998..11f66545 100644
--- a/src/target/firmware/include/comm/sercomm_cons.h
+++ b/src/target/firmware/include/comm/sercomm_cons.h
@@ -2,7 +2,7 @@
#define _SERCOMM_CONS_H
/* how large buffers do we allocate? */
-#define SERCOMM_CONS_ALLOC (256-4)
+#define SERCOMM_CONS_ALLOC 256
int sercomm_puts(const char *s);
int sercomm_putchar(int c);