Skip to content

Commit 72934a9

Browse files
Correct Float type size
Correct in the data type table and the API call the size of the Preferences `Float` type and returned value for `putFloat()`.
1 parent 70786dc commit 72934a9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

+6-5
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ Preferences directly supports the following data types:
6262
+-------------------+-------------------+---------------+
6363
| ULong | uint32_t | 4 |
6464
+-------------------+-------------------+---------------+
65+
| Float | float_t | 4 |
66+
+-------------------+-------------------+---------------+
6567
| Long64 | int64_t | 8 |
6668
+-------------------+-------------------+---------------+
6769
| ULong64 | uint64_t | 8 |
6870
+-------------------+-------------------+---------------+
69-
| Float | float_t | 8 |
70-
+-------------------+-------------------+---------------+
7171
| Double | double_t | 8 |
7272
+-------------------+-------------------+---------------+
7373
| | const char* | variable |
@@ -76,7 +76,6 @@ Preferences directly supports the following data types:
7676
+-------------------+-------------------+---------------+
7777
| Bytes | uint8_t | variable |
7878
+-------------------+-------------------+---------------+
79-
8079
String values can be stored and retrieved either as an Arduino String or as a null terminated ``char`` array (c-string).
8180

8281
Bytes type is used for storing and retrieving an arbitrary number of bytes in a namespace.
@@ -258,6 +257,8 @@ Arduino-esp32 Preferences API
258257
``putInt, putUInt``
259258
********************
260259
``putLong, putULong``
260+
**********************
261+
``putFloat``
261262
**********************
262263

263264
Store a value against a given key in the currently open namespace.
@@ -288,8 +289,8 @@ Arduino-esp32 Preferences API
288289

289290
``putLong64, putULong64``
290291
*************************
291-
``putFloat, putDouble``
292-
***********************
292+
``putDouble``
293+
*************************
293294

294295
Store a value against a given key in the currently open namespace.
295296

0 commit comments

Comments
 (0)