Skip to content

Commit

Permalink
Save name to LittleFS when loaded from SD
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstalgia committed Dec 15, 2024
1 parent 82411ae commit 63a822c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ jobs:
# continue-on-error: true
- name: Install Cargo Binstall
uses: cargo-bins/cargo-binstall@main
continue-on-error: true
- name: Install espflash
run: cargo binstall espflash --version 3.2.0 --target x86_64-unknown-linux-gnu --no-confirm --force
continue-on-error: true
- name: Build Release Binary
run: espflash save-image --chip esp32 --flash-size 4mb --partition-table partitions.csv --merge target/xtensa-esp32-espidf/release/mff-hr-v1 target/xtensa-esp32-espidf/release/out.bin
run: espflash save-image --chip esp32 --flash-size 4mb --partition-table partitions.csv --merge --skip-padding target/xtensa-esp32-espidf/release/mff-hr-v1 target/xtensa-esp32-espidf/release/out.bin
continue-on-error: true
- name: Archive Release artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ where
return Ok(());
}
self.settings.username = fs::read_to_string("/sdcard/NAME.TXT")?;
self.settings.littlefs_save()?;
Ok(())
}
// fn custom_contiguous<I>(&mut self, area: &Rectangle, colors: I) -> Result<()>
Expand Down

0 comments on commit 63a822c

Please sign in to comment.