Skip to content

Conversation

trylaarsdam
Copy link

setSketchStats and getSketchStats were not prototyped, so their definitions should go above setup/loop.

What This PR Changes

This changes the explanation of where to place the getSketchStats and setSketchStats functions in the Portenta Key-Value pair flash storage example. These two functions were not prototyped earlier in the example firmware, so users would get a "not declared in this scope" error if the instructions were followed to the letter.

This could also be resolved by adding prototypes for the two functions in one of the earlier code snippets.

Contribution Guidelines

setSketchStats and getSketchStats were not prototyped, so their definitions should go above setup/loop
@trylaarsdam trylaarsdam changed the title Create functions above setup/loop Create functions above setup/loop or prototype in Portenta flash key-value example Jul 10, 2023
@jhansson-ard jhansson-ard added community Bugs and fixes suggested by the community pro labels Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Bugs and fixes suggested by the community pro
2 participants