-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
12.7kB more code with 5.12.0j #2400
Comments
Is user_config_override really used? You have to enable this option in your IDE! |
Yes it's enabled. With active |
That's what the user_config_override.h file is for. I enable most new features in the development branch to get people testing the new functionality. What you do not need/want just disable it as you perfectly did in the first entry. Although disabling define USE_TIMERS only is enough to get all Timer code vanished from the distribution. The master branch will have an ever bigger exclusion config but I probably won't be able to keep it below the magic OTA high water mark... |
Hi Theo, thanks for your help. At the moment it's necessary to exclude the Timers active = 530.0kB
Version 5.12.0i without So something is wrong :-). |
Ah verified. Will investigate. |
Found it. In file sonoff.ino change line 1309 from
in to
|
Haha great. Compiler error fixed... thank you. Do you have an idea with the flash consumption between the versions? I disabled every timer but the file is 12.7kB larger with version 5.12.0j (compared with 5.12.0i). Another point... Safe flash space by disabling a subtopic: |
#1592 will be solved soon. When timers are disabled all code should be disabled. Pls provide user_config info for deciding where the 12.9 kB could come from. |
Are you sure you used the same esp/arduino library while comparing 5.12.0i with 5.12.0j? |
Yes now I'm 100% sure. I downloaded version 5.12.0k (thanks for the quick fix) and the old 5.12.0i: The size difference is still the same. Crazy. |
I tested many different compiler options. I'm not sure but I think the difference comes from different ESP libraries (2.3.0 / 2.4.0 / 2.4.1). Greetings Fabi |
5.12.0k * Prepare for simple rules by enlarging Settings area to now 2048 bytes * Fix freeing more code space when emulation is disabled (arendst#1592) * Fix compile error when not defined USE_TIMERS (arendst#2400)
Hello, I compiled the version 5.12.0i and 5.12.0j. But the version 5.12.0j use 12.7kB more of flash. I excluded the timer option with this
user_config_override.h
:status 0
: not necessaryThe text was updated successfully, but these errors were encountered: