From 77cba731b91ec9cf8dd88b2046e0efff9791dee5 Mon Sep 17 00:00:00 2001
From: s-hadinger <49731213+s-hadinger@users.noreply.github.com>
Date: Mon, 2 Oct 2023 23:32:55 +0200
Subject: [PATCH] Partition_Wizard compatible with grow on mount (#19645)
---
.../berry_tasmota/src/be_tasmota_lib.c | 6 +++++
tasmota/berry/modules/Partition_Wizard.tapp | Bin 17544 -> 35678 bytes
.../partition_wizard.be | 25 +++++++++++++++---
.../Partition_Wizard/partition_wizard.bec | Bin 17101 -> 0 bytes
.../xdrv_52_3_berry_tasmota.ino | 5 ++++
5 files changed, 33 insertions(+), 3 deletions(-)
rename tasmota/berry/modules/{ => Partition_Wizard}/partition_wizard.be (97%)
delete mode 100644 tasmota/berry/modules/Partition_Wizard/partition_wizard.bec
diff --git a/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c b/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c
index 31c7ffe3d..e4962d731 100644
--- a/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c
+++ b/lib/libesp32/berry_tasmota/src/be_tasmota_lib.c
@@ -5,6 +5,7 @@
*******************************************************************/
#include "be_constobj.h"
#include "be_ctypes.h"
+#include "be_mapping.h"
extern struct TasmotaGlobal_t TasmotaGlobal;
extern struct TSettings * Settings;
@@ -62,6 +63,10 @@ extern int l_i2cenabled(bvm *vm);
extern int tasm_find_op(bvm *vm);
extern int tasm_apply_str_op(bvm *vm);
+// tasmota.version() -> int
+extern int32_t be_Tasmota_version(void);
+BE_FUNC_CTYPE_DECLARE(be_Tasmota_version, "i", "-");
+
#include "solidify/solidified_tasmota_class.h"
#include "solidify/solidified_rule_matcher.h"
#include "solidify/solidified_trigger_class.h"
@@ -137,6 +142,7 @@ class be_class_tasmota (scope: global, name: Tasmota) {
get_switches, func(l_getswitch)
i2c_enabled, func(l_i2cenabled)
+ version, ctype_func(be_Tasmota_version)
fast_loop, closure(Tasmota_fast_loop_closure)
add_fast_loop, closure(Tasmota_add_fast_loop_closure)
diff --git a/tasmota/berry/modules/Partition_Wizard.tapp b/tasmota/berry/modules/Partition_Wizard.tapp
index 98bfc21b98ba0a2f175f3df902054f3f209d9854..1f4e94e0a28bc106209cb68eda6653e3ebb4c616 100644
GIT binary patch
literal 35678
zcmd6QO>ZPea`wn8FW}jueK6n`MvBC!o2y~-Yc$qUBn6E$S`YL!nBhQP$U?K&T_j6v
zcJ)?O&v4|uyhp!(zy|{c46HA<|A5cF`==N_`uILiL}XT0vx^_2rflwx$gawajEszk
zjIYdo`uWe^zI%s1-~av3U;N#_|HnTb<8S`^#hw3iCz)1xdY%q?hv|#`Kf3d?^WXpH
z;osoj^!yih-g^7L-@0?>?LR@&WmlZJr%6#|RhEzY-()`|#jsZ;lgWqfhiu|jzjv$a
z^BY`vy7tSv+1Vs7DmMuLUkSjwPXn(1@^6p68GZg=zx}7by>o~E{usE Ca;n)*P$ZYaW;w<*8*r9|4(-%7^~cbTGQ
zHyV$2gUcEB!0ExNO+h>;Igm|eY!cWdGB5xNOVKTatr4+j-IZXs3;Tt$6etj6A^RUd
zd2EO^LWLp@%sp@tllzc6br7`U5J&OQ13dJ`kl~CftVAvOEgHXHoOn(pexkTMCx9=a
ztGYa=?sI*pT8iJNAbkqLH&XmFO6!O;jE}!0z7uZ(!Z(>k)S-OYA)MggP_t`7Q|pNQ
zJ2#sNusQtIfb3%q32(aBV3G0}T&rv@A5F You can expand the file system by %i KB.7K}U+(We?c;>LDzEza
zb%05#;Q}zGI|z+Z%zwcyqnCpuah({q2mKdMpje-B&txLAetP%rU69Xz!#UV1FwhX0
zdGHY|E5EFu2GoUVGmP%_d4Ot}eld2!L&c~+&8XRDp3cKlGAmwX^83#fk?w3?KqLv4
zajgmtyWtyq^oaJ5h7Yf52jU$HYI>dydWT8HGn8{+^e!?QDSFqWdbWp<>+yNQQj5EH
zXDNWUKqJ9|#FMROiMi?59xzx2az6e1tv~qlpWVH~pYQ+v=P&;5-~ZzukMTGE{o>A_
z^0EB<{{Qkhp8^9F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