tasmota/tasmotizer

Restore fails on define USE_SCRIPT firmware

Closed this issue · 1 comments

I did create 2 firmware files based on tasmota-4M (13.3.0)
Firmware A was done with no modification except some sensors removals (to reduce firmware size - just in case)
Firmware B was done with same settings as firmware A with additional define

#ifndef USE_SCRIPT
#define USE_SCRIPT
  #ifdef USE_RULES
    #undef USE_RULES
  #endif
#endif

I can create backup dump on both versions.
I can restore both dump files on Firmware A.
I cannot restore both dump files on Firmware B.
I'm getting "Not enough space" while I guess in fact real issue belongs on parsing dump file

console output (level 4)

[10:57:40]10:57:39.802 HTP: Restore Configuration
[10:57:52]10:57:51.704 CFG: Saved to flash at 3FB, Count 202, Bytes 4096
[10:57:52]10:57:51.704 UPL: File Config_tasmota.dmp
[10:57:52]10:57:51.725 APP: Not enough space
[10:57:52]10:57:51.734 UPP: Multicast (re)joined
[10:57:52]10:57:51.737 HTP: Upload done

I did compare dumps with decode-config and noticed on firmware B parameter rules got removed while script where added beside I guess not relevant changes on crc and save_flag modification.

As the script itself it not part of the backup (saved in script.txt on UFS) I do not understand the behavior.

Going back to older versions it looks like behavior did occur on Tasmota 12.1 until now.

memory on Firmware A

Flash Size	4096 KB
Program Flash Size	4096 KB
Program Size	611 KB
Free Program Space	1436 KB
Free Memory	26.6 KB
File System Size	2024 KB

memory on Firmware B

Flash Size	4096 KB
Program Flash Size	4096 KB
Program Size	625 KB
Free Program Space	1420 KB
Free Memory	17.9 KB 
File System Size	2024 KB

sorry, wrong repository..