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

Change dev_read() to output data suitable for direct write back through the dev file.

This commit is contained in:
Robin Mallinson 2012-11-21 22:46:23 +00:00
parent e712bd86ba
commit e59ad99d57
2 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ static ssize_t dev_read(struct file *filp,char *buf,size_t count,loff_t *f_pos)
for (servo=0, *idx=0; servo < NUM_SERVOS; ++servo)
{
*idx += snprintf(returnedData+*idx, sizeof(pdata->ret_data)-*idx,
"%i %i\n",
"%i=%i\n",
servo,
written_data[servo]
);

Binary file not shown.