extmod/vfs_fat: Fix unused param warning/error.

This commit is contained in:
Paul Sokolovsky 2016-02-28 20:45:51 +02:00
parent 57425b648f
commit 6f469209e9
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ STATIC mp_obj_t fat_vfs_listdir_func(size_t n_args, const mp_obj_t *args) {
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(fat_vfs_listdir_obj, 1, 2, fat_vfs_listdir_func);
STATIC mp_obj_t fat_vfs_remove(mp_obj_t vfs_in, mp_obj_t path_in) {
(void)vfs_in;
const char *path = mp_obj_str_get_str(path_in);
// TODO check that path is actually a file before trying to unlink it
FRESULT res = f_unlink(path);