Skip to content

Commit df67a6a

Browse files
committed
Fixed return value documentation of SdFile::write()
1 parent 666a2f5 commit df67a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/SdFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ uint8_t SdFile::truncate(uint32_t length) {
11241124
* \param[in] nbyte Number of bytes to write.
11251125
*
11261126
* \return For success write() returns the number of bytes written, always
1127-
* \a nbyte. If an error occurs, write() returns -1. Possible errors
1127+
* \a nbyte. If an error occurs, write() returns 0. Possible errors
11281128
* include write() is called before a file has been opened, write is called
11291129
* for a read-only file, device is full, a corrupt file system or an I/O error.
11301130
*

0 commit comments

Comments
 (0)