From b7eab415ff03717577f6bf236ffb62ac1754ec79 Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Fri, 8 Jan 2021 11:50:33 +0100 Subject: [PATCH] fixes fs size on low ram memory --- tasmota/xdrv_50_filesystem.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);