Skip to content

Commit cff054f

Browse files
committed
Remove surplus commenting
1 parent e4a4c63 commit cff054f

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

targets/ChibiOS/_FatFs/fatfs_FS_Driver.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,21 @@ HRESULT FATFS_FS_Driver::GetSizeInfo(const VOLUME_ID *volume, int64_t *totalSize
178178

179179
f_chdrive(currentVolume->m_rootName);
180180

181-
// // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
182-
// // // get free clusters
183-
// // f_getfree(buffer, &freeClusters, &fsPtr);
184-
185-
// // // Get total sectors and free sectors
186-
// // totalSectors = (fs.n_fatent - 2) * fs.csize;
187-
// // freeSectors = freeClusters * fs.csize;
188-
189-
// // #if FF_MAX_SS != FF_MIN_SS
190-
// // *totalSize = (int64_t)totalSectors * fs.ssize;
191-
// // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
192-
// // #else
193-
// // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
194-
// // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
195-
// // #endif
181+
// this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
182+
// // get free clusters
183+
// f_getfree(buffer, &freeClusters, &fsPtr);
184+
185+
// // Get total sectors and free sectors
186+
// totalSectors = (fs.n_fatent - 2) * fs.csize;
187+
// freeSectors = freeClusters * fs.csize;
188+
189+
// #if FF_MAX_SS != FF_MIN_SS
190+
// *totalSize = (int64_t)totalSectors * fs.ssize;
191+
// *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
192+
// #else
193+
// *totalSize = (int64_t)totalSectors * FF_MAX_SS;
194+
// *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
195+
// #endif
196196

197197
*totalSize = -1;
198198
*totalFreeSpace = -1;

targets/ESP32/_FatFs/fatfs_FS_Driver.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,21 @@ HRESULT FATFS_FS_Driver::GetSizeInfo(const VOLUME_ID *volume, int64_t *totalSize
9393

9494
f_chdrive(currentVolume->m_rootName);
9595

96-
// // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
97-
// // // get free clusters
98-
// // f_getfree(buffer, &freeClusters, &fsPtr);
99-
100-
// // // Get total sectors and free sectors
101-
// // totalSectors = (fs.n_fatent - 2) * fs.csize;
102-
// // freeSectors = freeClusters * fs.csize;
103-
104-
// // #if FF_MAX_SS != FF_MIN_SS
105-
// // *totalSize = (int64_t)totalSectors * fs.ssize;
106-
// // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
107-
// // #else
108-
// // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
109-
// // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
110-
// // #endif
96+
// this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
97+
// // get free clusters
98+
// f_getfree(buffer, &freeClusters, &fsPtr);
99+
100+
// // Get total sectors and free sectors
101+
// totalSectors = (fs.n_fatent - 2) * fs.csize;
102+
// freeSectors = freeClusters * fs.csize;
103+
104+
// #if FF_MAX_SS != FF_MIN_SS
105+
// *totalSize = (int64_t)totalSectors * fs.ssize;
106+
// *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
107+
// #else
108+
// *totalSize = (int64_t)totalSectors * FF_MAX_SS;
109+
// *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
110+
// #endif
111111

112112
*totalSize = -1;
113113
*totalFreeSpace = -1;

0 commit comments

Comments
 (0)