po wycofaniu tych dwóch zmian:
https://github.com/krycha88/GUI-Generic ... 16e1456db3
oraz
https://github.com/krycha88/GUI-Generic ... e32de3bb99
rozmiar na teście 503KB
EDIT: A jednak się pomyliłem i nie na ten plik się popatrzyłem
Już się dziwiłem co tam takiego mogło się zminić, że kod zmalałkrycha88 wrote: Fri Aug 19, 2022 8:46 am Trafiłeś w sedno
rozmiar na teście 503KB
EDIT: A jednak się pomyliłem i nie na ten plik się popatrzyłem![]()
Oj zapewne. Najlepiej strosować F(string) w Arduino IDE aby zminimalizować miejsce przeznaczone na stringi w kodzie programu.krycha88 wrote: Fri Aug 19, 2022 9:03 am A czy problemem nie są takie miejsca:
https://github.com/SUPLA/supla-device/b ... rs.cpp#L42
??
The F() macro does two things:
uses PSTR to ensure that the literal string is stored in flash memory (the code space rather than the data space). However, PSTR("some string") cannot be printed because it would receive a simple char * which represents a base address of the string stored in flash. Dereferencing that pointer would access some random characters from the same address in data. Which is why F() also...
casts the result of PSTR() to __FlashStringHelper*. Functions such as print and println are overloaded so that, on receiving a __FlashStringHelper* argument, they correctly dereference the characters in the flash memory.
F(string) oszczędza wyłącznie pamięć RAM i nie ma większego wpływu na wielkość binarki.Goral64 wrote: Fri Aug 19, 2022 9:06 amOj zapewne. Najlepiej strosować F(string) w Arduino IDE aby zminimalizować miejsce przeznaczone na stringi w kodzie programu.krycha88 wrote: Fri Aug 19, 2022 9:03 am A czy problemem nie są takie miejsca:
https://github.com/SUPLA/supla-device/b ... rs.cpp#L42
??
Coś tu jestkrycha88 wrote: Fri Aug 19, 2022 9:28 am Ja w GG nie korzystam z LittleFS a ze starego spiffs. Więc może dodanie już samej biblioteki do kompilacji tyle zajmuje?