Skip to content

Commit 48f15c0

Browse files
gmarullclaude
authored andcommitted
fw/services/persist: raise per-app storage limit to 1 MiB
Raise the per-app persistent storage limit from 6 KiB to 1 MiB. Modern Pebble watches have 32 MB of flash storage, so a 1 MiB per-app limit is reasonable. Update the API documentation accordingly. Fixes #416 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-Authored-By: Gerard Marull-Paretas <gerard@teslabs.com> Signed-off-by: Joshua Jun <lets@throw.rocks>
1 parent 27fe57f commit 48f15c0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/fw/applib/persist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//! retrieve values from the phone, it provides you with a much faster way to restore state.
3636
//! In addition, it draws less power from the battery.
3737
//!
38-
//! Note that the size of all persisted values cannot exceed 4K per app.
38+
//! Note that the size of all persisted values cannot exceed 1MB per app.
3939
//! @{
4040

4141
//! The maximum size of a persist value in bytes

src/fw/services/persist/service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "util/list.h"
2020
#include "util/units.h"
2121

22-
#define PERSIST_STORAGE_MAX_SPACE KiBYTES(6)
22+
#define PERSIST_STORAGE_MAX_SPACE MiBYTES(1)
2323
#define PERSIST_STORAGE_INITIAL_ALLOC KiBYTES(4)
2424

2525
typedef struct PersistStore {

0 commit comments

Comments
 (0)