Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8ebf758

Browse filesBrowse files
authored
fix return value of getBytes (espressif#7981)
1 parent bad5af9 commit 8ebf758
Copy full SHA for 8ebf758

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎docs/source/api/preferences.rst

Copy file name to clipboardExpand all lines: docs/source/api/preferences.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.