Skip to content

Commit c8c6043

Browse files
committed
Updated API (markdown)
1 parent 97f58ff commit c8c6043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ Since core version 1.9.0 (see [PR #996](https://github.com/stm32duino/Arduino_Co
594594
595595
To do this, the variable must be placed in the `.noinit` section by adding `__attribute__((__section__(".noinit")))` (this is exactly the same as how this works on the original Arduino AVR core). Typically, you would also need to check the startup reason register so you can initialize the variable with a default on the first startup. For example, something like:
596596
597-
```
597+
```C++
598598
unsigned boot_count __attribute__((__section__(".noinit")));
599599
600600
void setup() {

0 commit comments

Comments
 (0)