Skip to content

Problems with structs in EEPROM on Pi PICO #744

Answered by strud
strud asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out to be a brain fart error on my part.

This does not work:

void StoreParameters(void){ int addr = EEPROM_BASE; EEPROM.put(addr, &padControllerConfig); EEPROM.commit(); }

This does

void StoreParameters(void){ int addr = EEPROM_BASE; EEPROM.put(addr, padControllerConfig); EEPROM.commit(); }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@earlephilhower
Comment options

Answer selected by strud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants