SD card backup storage (#565)

* Got SD card mounting during boot

* Cleaned up comments

* Now loads settings from SD as backup

* Now loads settings from SD as backup

* linting

* refactoring
This commit is contained in:
jLynx 2022-04-11 21:42:56 +12:00 committed by GitHub
parent b02329019c
commit 5d9a2e560b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 8 deletions

View file

@ -167,7 +167,7 @@ int main(void) {
if( portapack::init() ) {
portapack::display.init();
sdcStart(&SDCD1, nullptr);
// sdcStart(&SDCD1, nullptr); // Commented out as now happens in portapack.cpp
// controls_init(); // Commented out as now happens in portapack.cpp
lcd_frame_sync_configure();
@ -175,6 +175,7 @@ int main(void) {
event_loop();
sdcDisconnect(&SDCD1);
sdcStop(&SDCD1);