summaryrefslogtreecommitdiff
path: root/lib/fatfs/fatfs_utils/fatfs_state.py
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2025-07-25 13:33:07 +1000
committerjacqueline <me@jacqueline.id.au>2025-07-25 13:33:07 +1000
commitc8e79a926620e48830778714cfe4b2ea2453fcaf (patch)
tree8c756e08e01b8e147cf72bec128026f46bd854c5 /lib/fatfs/fatfs_utils/fatfs_state.py
parent237136f3e93cb6b5be24670d7520adb17cc0fa36 (diff)
downloadtangara-fw-c8e79a926620e48830778714cfe4b2ea2453fcaf.tar.gz
Update forked idf components
Diffstat (limited to 'lib/fatfs/fatfs_utils/fatfs_state.py')
-rw-r--r--lib/fatfs/fatfs_utils/fatfs_state.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fatfs/fatfs_utils/fatfs_state.py b/lib/fatfs/fatfs_utils/fatfs_state.py
index 22af7bfb..4ba57132 100644
--- a/lib/fatfs/fatfs_utils/fatfs_state.py
+++ b/lib/fatfs/fatfs_utils/fatfs_state.py
@@ -152,6 +152,7 @@ class BootSectorState:
def non_data_sectors(self) -> int:
non_data_sectors_: int = get_non_data_sectors_cnt(self.reserved_sectors_cnt,
self.sectors_per_fat_cnt,
+ self.fat_tables_cnt,
self.root_dir_sectors_cnt)
return non_data_sectors_
@@ -166,5 +167,5 @@ class BootSectorState:
@property
def root_directory_start(self) -> int:
- root_dir_start: int = (self.reserved_sectors_cnt + self.sectors_per_fat_cnt) * self.sector_size
+ root_dir_start: int = (self.reserved_sectors_cnt + self.sectors_per_fat_cnt * self.fat_tables_cnt) * self.sector_size
return root_dir_start