Skip to content

Commit

Permalink
fix: fix some compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesords committed Dec 18, 2024
1 parent c56d0b3 commit 277f52c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/FlashFull/FlashFull.ino
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@ static int sfud_demo(uint32_t addr, size_t size, uint8_t *data) {
SERIAL.print(CostTime);
SERIAL.println(" us");
}
}

return 0;
}
4 changes: 3 additions & 1 deletion src/Seeed_SFUD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ namespace fs
free(flash_t);
_pdrv = 0xFF;
}

return true;
}
sfud_type_t SFUDFS::flashType()
{
Expand Down Expand Up @@ -218,4 +220,4 @@ DRESULT flash_disk_ioctl(uint8_t pdrv, uint8_t cmd, void *buff)
return RES_PARERR;
}

#endif
#endif

0 comments on commit 277f52c

Please sign in to comment.