Skip to content

Create functions above setup/loop or prototype in Portenta flash key-value example #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants