This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a commit to branch vipul/juul-master-steam-10-18-2023
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 66ffa232ba119e69ddd59d8409e4601a82495554
Author: Karthik Bharadwaj <[email protected]>
AuthorDate: Fri Jul 7 01:59:42 2023 +0000

    Increase size of some `struct fcb` members
    
    - Moving the sector_cnt and scratch_cnt members to a uint16_t allows for a 
counts > 255.
    - Moving the version to a uint16_t allows for a more flexible scheme of 
versioning.
    
    Component: Flash Circular Buffer
---
 fs/fcb/include/fcb/fcb.h | 2 +-
 mynewt-newt              | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/fcb/include/fcb/fcb.h b/fs/fcb/include/fcb/fcb.h
index 4e43e7f0b..3d3c40c17 100644
--- a/fs/fcb/include/fcb/fcb.h
+++ b/fs/fcb/include/fcb/fcb.h
@@ -52,7 +52,7 @@ struct fcb_entry {
 struct fcb {
     /* Caller of fcb_init fills this in */
     uint32_t f_magic;          /* As placed on the disk */
-    uint8_t f_version;         /* Current version number of the data */
+    uint16_t f_version;        /* Current version number of the data */
     uint16_t f_sector_cnt;     /* Number of elements in sector array */
     uint16_t f_scratch_cnt;    /* How many sectors should be kept empty */
     struct flash_area *f_sectors; /* Array of sectors, must be contiguous */
diff --git a/mynewt-newt b/mynewt-newt
new file mode 160000
index 000000000..9dbd3da3f
--- /dev/null
+++ b/mynewt-newt
@@ -0,0 +1 @@
+Subproject commit 9dbd3da3f3ab9e0db3540b9232ac9bd20b07b86d

Reply via email to