Fix printf format specifier to match length of data type.
Here, LFS uses an int for return value, which is 16-bit. The VERIFY_MESS expects a 32-bit value, so cast here at the boundary between the two sets of files.
This commit is contained in:
1 parent
f0f6b1041a
commit
4904ee5a9d
1 file changed
+1
-1
@@ -83,7 +83,7 @@ class Adafruit_LittleFS
|
||||
#define PRINT_LFS_ERR(_err)
|
||||
#else
|
||||
#define VERIFY_LFS(...) _GET_3RD_ARG(__VA_ARGS__, VERIFY_ERR_2ARGS, VERIFY_ERR_1ARGS)(__VA_ARGS__, dbg_strerr_lfs)
|
||||
#define PRINT_LFS_ERR(_err) VERIFY_MESS(_err, dbg_strerr_lfs)
|
||||
#define PRINT_LFS_ERR(_err) VERIFY_MESS((long int)_err, dbg_strerr_lfs) // LFS_ERR are of type int, VERIFY_MESS expects long_int
|
||||
|
||||
const char* dbg_strerr_lfs (int32_t err);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user