mirror of
https://github.com/richardghirst/PiBits.git
synced 2025-02-26 19:54:16 +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)
|
for (servo=0, *idx=0; servo < NUM_SERVOS; ++servo)
|
||||||
{
|
{
|
||||||
*idx += snprintf(returnedData+*idx, sizeof(pdata->ret_data)-*idx,
|
*idx += snprintf(returnedData+*idx, sizeof(pdata->ret_data)-*idx,
|
||||||
"%i %i\n",
|
"%i=%i\n",
|
||||||
servo,
|
servo,
|
||||||
written_data[servo]
|
written_data[servo]
|
||||||
);
|
);
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user