From 2517a8a49eb724c25f78fde52f3d06aaa651af10 Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 28 Apr 2013 10:00:32 +1000 Subject: [PATCH] bflsc ensure buffer is bigger than max reply --- driver-bflsc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/driver-bflsc.c b/driver-bflsc.c index 5fbed786..e7802355 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -30,7 +30,14 @@ #define BLANK "" #define LFSTR "" -#define BFLSC_BUFSIZ (0x200) +/* + * With Firmware 1.0.0 and a result queue of 20 the Max is: + * header = 9 + * 64+1+32+1+1+(1+8)*8+1 per line = 172 * 20 + * OK = 3 + * Total: 3452 + */ +#define BFLSC_BUFSIZ (0x1000) #define BFLSC_DI_FIRMWARE "FIRMWARE" #define BFLSC_DI_ENGINES "ENGINES"