-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
adding WifiManager::isConfigPortalActive() abd WifiManager::isWebPortalActive() #1199
Conversation
Makes sense I assumed users would do this in their own code. |
changed method names // check if config portal is active (true)
bool getConfigPortalActive();
// check if web portal is active (true)
bool getWebPortalActive(); I just moved them around for documentation and to be not inline, thanks! |
@tablatronix about the inline thing : I did it for performance and also final image size. It would be such a waste to do a CALL for this! |
Does compiler not optimize this out anyway? |
my (bin) code is 16 bytes smaller, I have not checked the asm. |
It's not always I see in the field so I usually optimize what I can by myself :D |
@tablatronix Here is the generated ASM output without inline: .LVL26: Which does not exist when I am using INLINE |
Thanks ill look at it, I would love to move on to optimizing everything now for size and speed now that its fairly stable. my dumbass was mistakingly testing without using the actual funcs, so they were compiled out lol geez |
Performance or image size, it's not possible have the two togheter. |
Hi @Testato My tests are showing image is small with inline, which makes sense because 1/ you have some bytes for the function itself and second some instructions to prepare each call |
Without inline image size is 971584 and that is with just 1 call, if I do more calls I get 2bytes saved per call. |
Thanks, all, if you want feel free to hit up the gitter to discuss in depth |
because sometimes you need to know :p !!!!!