Skip to content

Commit d133493

Browse files
committed
SD: seek returns bool
1 parent 3c32bf5 commit d133493

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ArduinoCore-Linux/libraries

ArduinoCore-Linux/libraries/SD.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ class File : public Stream {
168168

169169
size_t position() { return file.tellg(); }
170170

171-
size_t seek(size_t pos) {
171+
bool seek(size_t pos) {
172172
file.seekg(pos);
173-
return pos;
173+
return file.goodbit;
174174
}
175175

176176
operator bool() { return isOpen(); }

0 commit comments

Comments
 (0)