Skip to content

Commit f149b4c

Browse files
author
Janne Kiiskila
committed
IAR / FATFS - Pe029 error
IAR compilation fails at `_fs = { 0 };` due to ``` [Error] FATFileSystem.cpp@285,0: [Pe029]: expected an expression ``` Changing that object initializer list instead, as that seems to pass IAR compilation, too. Changed original memset to object initialiser list based on review feedback from Kevin Bracey.
1 parent 4ad24c0 commit f149b4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/storage/filesystem/fat/FATFileSystem.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,8 @@ extern "C" DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
280280

281281
// Filesystem implementation (See FATFilySystem.h)
282282
FATFileSystem::FATFileSystem(const char *name, BlockDevice *bd)
283-
: FileSystem(name), _id(-1)
283+
: FileSystem(name), _fs(), _id(-1)
284284
{
285-
_fs = { 0 };
286285
if (bd) {
287286
mount(bd);
288287
}

0 commit comments

Comments
 (0)