From 6b16745cf0b8c14fa0a5f639e6fa3124e198f1e6 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 6 Jan 2021 14:41:23 +0100 Subject: [PATCH] Support UFILESYS --- tasmota/support_features.ino | 4 +++- tasmota/{xdrv_98_filesystem.ino => xdrv_50_filesystem.ino} | 6 +++--- tools/decode-status.py | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) rename tasmota/{xdrv_98_filesystem.ino => xdrv_50_filesystem.ino} (99%) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 1def3db1c..db5cc9b17 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -689,7 +689,9 @@ void ResponseAppendFeatures(void) #if defined(USE_SPI) && defined(USE_DISPLAY) && defined(USE_DISPLAY_SSD1331) feature7 |= 0x00100000; // xdsp_14_SSD1331.ino #endif -// feature7 |= 0x00200000; +#ifdef USE_UFILESYS + feature7 |= 0x00200000; +#endif // feature7 |= 0x00400000; // feature7 |= 0x00800000; diff --git a/tasmota/xdrv_98_filesystem.ino b/tasmota/xdrv_50_filesystem.ino similarity index 99% rename from tasmota/xdrv_98_filesystem.ino rename to tasmota/xdrv_50_filesystem.ino index 3aad95a5a..e8ad48b97 100644 --- a/tasmota/xdrv_98_filesystem.ino +++ b/tasmota/xdrv_50_filesystem.ino @@ -1,5 +1,5 @@ /* - xdrv_98_filesystem.ino - unified file system for Tasmota + xdrv_50_filesystem.ino - unified file system for Tasmota Copyright (C) 2020 Gerhard Mutz and Theo Arends @@ -41,7 +41,7 @@ ufsfree free size in kB The driver enabled by #define USE_UFILESYS \*********************************************************************************************/ -#define XDRV_98 98 +#define XDRV_50 50 #ifndef SDCARD_CS_PIN #define SDCARD_CS_PIN 4 @@ -516,7 +516,7 @@ void UFSFileUploadSuccess(void) { * Interface \*********************************************************************************************/ -bool Xdrv98(uint8_t function) { +bool Xdrv50(uint8_t function) { bool result = false; switch (function) { diff --git a/tools/decode-status.py b/tools/decode-status.py index 3e940d8ff..85ada62c6 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -243,7 +243,7 @@ a_features = [[ "USE_EZODO","USE_EZORGB","USE_EZOPMP","USE_AS608", "USE_SHELLY_DIMMER","USE_RC522","USE_FTC532","USE_DISPLAY_EPAPER_42", "USE_DISPLAY_ILI9488","USE_DISPLAY_SSD1351","USE_DISPLAY_RA8876","USE_DISPLAY_ST7789", - "USE_DISPLAY_SSD1331","","","", + "USE_DISPLAY_SSD1331","USE_UFILESYS","","", "","","","", "","","","" ]] @@ -273,7 +273,7 @@ else: obj = json.load(fp) def StartDecode(): - print ("\n*** decode-status.py v20210103 by Theo Arends and Jacek Ziolkowski ***") + print ("\n*** decode-status.py v20210106 by Theo Arends and Jacek Ziolkowski ***") # print("Decoding\n{}".format(obj))