cmaglie / FlashStorage

A convenient way to store data into Flash memory on the ATSAMD21 and ATSAMD51 processor family
203 stars 69 forks source link

Updating value inside struct. #51

Open zygisjas opened 3 years ago

zygisjas commented 3 years ago

Is there a way to update only one value inside the struct object instead of updating them all?

I've tried something like:

settings.saved = true;
flashStore.write(settings.saved);

Getting error:

exit status 1
no matching function for call to 'FlashStorageClass<Settings>::write(boolean&)'