• Hardcoded value was for easy testing only :)

    Hmmm, I could move the functionality to assign jsVarSize into function main of jshardware.c.
    In there would be a switch based on heap size (or psram recognition) to assign "small memory VarSize" or "big memory VarSize"
    Both values should be in ESP32.py.
    Hmmm, have to check how these values will make it to platform_config.h. This should be no problem.
    AFAIK Everything could be done without changes in jsvInit(jsvar.c), but I would prefer to make it more general. Means adding one more definition in ESP32.py, something like "board defined jsVarSize". This way we would add a more general functionality for other boards in the future.

    What would you prefer ? Or is there another(better) option, which did not come to my mind ?
    Anyway, I've a starting point now for more testing.

About

Avatar for JumJum @JumJum started