1
0
mirror of https://github.com/richardghirst/PiBits.git synced 2024-11-28 12:24:11 +01:00

Increase space available for cmd_str ready for taking multiple commands in one go.

This commit is contained in:
Robin Mallinson 2012-11-21 01:07:17 +00:00
parent ce367d489a
commit 1b8dbeed21
2 changed files with 3 additions and 4 deletions

View File

@ -325,11 +325,10 @@ struct process_data
int ret_idx; int ret_idx;
char ret_data[NUM_SERVOS * 10]; char ret_data[NUM_SERVOS * 10];
// Stores one user command (single line) for a given user process. // Stores up to NUM_SERVOS user commands (of up to 10 chars) per user process.
// e.g. "3=180" // e.g. "1=60\n2=45\n3=180\n"
// Line length is expected to be <32
int cmd_idx; int cmd_idx;
char cmd_str[32]; char cmd_str[NUM_SERVOS * 10];
}; };
// kmalloc the temporary data required for each user: // kmalloc the temporary data required for each user:

Binary file not shown.