Skip to content

Commit 20ef192

Browse files
nn/temp: Fix TEMPTargetPreference
1 parent 9fda122 commit 20ef192

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

include/nn/temp/temp.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ extern "C" {
99

1010
typedef enum TEMPTargetPreference
1111
{
12-
TEMP_PREF_DEFAULT = 0,
13-
TEMP_PREF_INTERNAL_STORAGE = 1,
12+
//! Use whichever target has more available space
13+
TEMP_PREF_DEFAULT = 0,
14+
//! Always prefer USB
15+
TEMP_PREF_USB = 1,
1416
} TEMPTargetPreference;
1517

1618
typedef uint64_t TEMPDirId;
@@ -22,7 +24,7 @@ void
2224
TEMPShutdown();
2325

2426
FSStatus
25-
TEMPCreateAndInitTempDir(uint32_t size,
27+
TEMPCreateAndInitTempDir(uint32_t maxSize,
2628
TEMPTargetPreference pref,
2729
TEMPDirId *outDir);
2830

0 commit comments

Comments
 (0)