Skip to content
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

Is there a way to store a struct of struct array? #30

Open
DavideNesi opened this issue May 12, 2019 · 1 comment
Open

Is there a way to store a struct of struct array? #30

DavideNesi opened this issue May 12, 2019 · 1 comment

Comments

@DavideNesi
Copy link

DavideNesi commented May 12, 2019

I need to store a struct made of an array of other struct, something like this:

typedef struct {
  boolean valid;
  char label[20];
  char name[20];
} A;

typedef struct {
  A arrayOfAs[50];
} B;

....

FlashStorage(flash_B_store, B);

Is there a way to do it using this library?

@DavideNesi
Copy link
Author

DavideNesi commented May 12, 2019

using something like this:

typedef struct {
  boolean valid[50];
  char label[50][20];
  char name[50][20];
} B;

could actually be a work around...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant