diff --git a/tasmota/xdrv_50_filesystem.ino b/tasmota/xdrv_50_filesystem.ino index 40ece33c9..a712d0663 100644 --- a/tasmota/xdrv_50_filesystem.ino +++ b/tasmota/xdrv_50_filesystem.ino @@ -428,8 +428,8 @@ void UFSdirectory(void) { char ts[16]; char fs[16]; - UFS_form1000(ufs_fsinfo(0, ufs_dir == 1 ? 0:1), ts, '.'); - UFS_form1000(ufs_fsinfo(1, ufs_dir == 1 ? 0:1), fs, '.'); + UFS_form1000(ufs_fsinfo(0, ufs_dir == 2 ? 1:0), ts, '.'); + UFS_form1000(ufs_fsinfo(1, ufs_dir == 2 ? 1:0), fs, '.'); WSContentSend_P(UFS_FORM_FILE_UPGc, WebColor(COL_TEXT), ts, fs);