We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 666a2f5 commit df67a6aCopy full SHA for df67a6a
src/utility/SdFile.cpp
@@ -1124,7 +1124,7 @@ uint8_t SdFile::truncate(uint32_t length) {
1124
* \param[in] nbyte Number of bytes to write.
1125
*
1126
* \return For success write() returns the number of bytes written, always
1127
- * \a nbyte. If an error occurs, write() returns -1. Possible errors
+ * \a nbyte. If an error occurs, write() returns 0. Possible errors
1128
* include write() is called before a file has been opened, write is called
1129
* for a read-only file, device is full, a corrupt file system or an I/O error.
1130
0 commit comments