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:
parent
e712bd86ba
commit
e59ad99d57
@ -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.
Loading…
Reference in New Issue
Block a user