Skip to content

FileIO.cpp fix on File::doBuffer() #1580

Closed
@dreggy

Description

@dreggy

Using the Bridge library for the Arduino Yùn I noticed a losses of bytes while reading files from the Yùn. This happens only when the file is larger of the buffer on FileIO.h

Actually i fixed this changing in the file FileIO.cpp the line 121:
uint8_t cmd[] = {'G', handle, sizeof(buffer)};
to:
uint8_t cmd[] = {'G', handle, sizeof(buffer)-1};

maybe the bug is caused by the shift routine at line 127~128

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions