From 06e95977956f4b71a45107901a4212756f80413f Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Sat, 25 Dec 2021 18:57:09 +0100 Subject: [PATCH] fix(ble): Increase max size of the firmware string For some development builds, the firmware version string can get quite long. For example: `v1.17-123-g2120027c87da-dirty`. To ensure such long versions still get transmitted properly, increase the buffer size to 32 bytes. Let's hope that's enough for now... --- epicardium/ble/svc_dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epicardium/ble/svc_dis.c b/epicardium/ble/svc_dis.c index b855f284..e855de4b 100644 --- a/epicardium/ble/svc_dis.c +++ b/epicardium/ble/svc_dis.c @@ -31,7 +31,7 @@ #include "wsf_trace.h" #include "util/bstream.h" -#define DIS_MAXSIZE_FWR_ATT 25 +#define DIS_MAXSIZE_FWR_ATT 32 #include "svc_dis.h" #include "svc_cfg.h" #include <string.h> -- GitLab