diff options
| author | ailurux <ailuruxx@gmail.com> | 2025-01-31 12:25:05 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2025-01-31 12:25:05 +1100 |
| commit | 5e3cfc8f3db18fac8e8962259f6521550add4139 (patch) | |
| tree | 774003df582f6986f4354e86223fcdaa52cf966e /src/drivers/nvs.cpp | |
| parent | 001fc52ec87bf04b5fb5a262d310738e5dd3682a (diff) | |
| parent | abf13d4ec112fc430b9fadea69455aa45d4e3cd6 (diff) | |
| download | tangara-fw-5e3cfc8f3db18fac8e8962259f6521550add4139.tar.gz | |
Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw
Diffstat (limited to 'src/drivers/nvs.cpp')
| -rw-r--r-- | src/drivers/nvs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/nvs.cpp b/src/drivers/nvs.cpp index 6c916e60..6f0d874e 100644 --- a/src/drivers/nvs.cpp +++ b/src/drivers/nvs.cpp @@ -172,9 +172,7 @@ auto Setting<std::vector<bluetooth::MacAndName>>::store( } template <> -auto Setting<std::string>::store( - nvs_handle_t nvs, - std::string v) -> void { +auto Setting<std::string>::store(nvs_handle_t nvs, std::string v) -> void { cppbor::Tstr cbor{v}; auto encoded = cbor.encode(); nvs_set_blob(nvs, name_, encoded.data(), encoded.size()); @@ -295,6 +293,7 @@ auto NvsStorage::Read() -> void { display_rows_.read(handle_); haptic_motor_type_.read(handle_); lra_calibration_.read(handle_); + fast_charge_.read(handle_); brightness_.read(handle_); sensitivity_.read(handle_); amp_max_vol_.read(handle_); @@ -317,6 +316,7 @@ auto NvsStorage::Write() -> bool { display_rows_.write(handle_); haptic_motor_type_.write(handle_); lra_calibration_.write(handle_); + fast_charge_.write(handle_); brightness_.write(handle_); sensitivity_.write(handle_); amp_max_vol_.write(handle_); |
