Skip to content

Commit 8ebf758

Browse files
authored
fix return value of getBytes (espressif#7981)
1 parent bad5af9 commit 8ebf758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/source/api/preferences.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Copy a series of bytes stored against a given key in the currently open namespac
578578
- the number of bytes to be written to the buffer pointed to by ``buf``
579579

580580
**Returns**
581-
* if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``1``.
581+
* if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``len``.
582582
* if the method fails, nothing is written to the buffer and the method returns ``0``.
583583

584584
**Notes**
@@ -698,4 +698,4 @@ Get the number of free entries available in the key table of the currently open
698698
* A message providing the reason for a failed call is sent to the arduino-esp32 ``log_e`` facility.
699699

700700

701-
.. --- EOF ----
701+
.. --- EOF ----

0 commit comments

Comments
 (0)