From 1b8dbeed2112d82b91e94b2eb5391221672118a7 Mon Sep 17 00:00:00 2001 From: Robin Mallinson Date: Wed, 21 Nov 2012 01:07:17 +0000 Subject: [PATCH] Increase space available for cmd_str ready for taking multiple commands in one go. --- ServoBlaster/servoblaster.c | 7 +++---- ServoBlaster/servoblaster.ko | Bin 10751 -> 10751 bytes 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ServoBlaster/servoblaster.c b/ServoBlaster/servoblaster.c index 0604e58..b935cc0 100644 --- a/ServoBlaster/servoblaster.c +++ b/ServoBlaster/servoblaster.c @@ -325,11 +325,10 @@ struct process_data int ret_idx; char ret_data[NUM_SERVOS * 10]; - // Stores one user command (single line) for a given user process. - // e.g. "3=180" - // Line length is expected to be <32 + // Stores up to NUM_SERVOS user commands (of up to 10 chars) per user process. + // e.g. "1=60\n2=45\n3=180\n" int cmd_idx; - char cmd_str[32]; + char cmd_str[NUM_SERVOS * 10]; }; // kmalloc the temporary data required for each user: diff --git a/ServoBlaster/servoblaster.ko b/ServoBlaster/servoblaster.ko index ee05a757811dae2067a0ed112178fb107a1d8f0c..273e94b4634eef33c3d7d27c578e80b1950ede23 100644 GIT binary patch delta 258 zcmew#{6BcZ3?@kxhRIJa2rPK~@BjbT3=9E}GZpwx(6TID;#?4Ke?0BozZ{uMb0=TaRX-~OLG@jQzJt+ zBR6A13rAxhbTr-U#>2)fa{5eW>i)gcHq5vYu$@aHj_-WfRin)b;w$+xEEwYBbMsT; zOEQzQxOW;Y%-ZjnUi_}u)I z_>#=z?D*p3#GKTU%7Ro=Lkp;Qa%FN(Dp@r@V%z`#