billroy / bitlash

Bitlash: a programmable command shell for arduino
http://bitlash.net
MIT License
341 stars 73 forks source link

Increasing MAX_USER_FUNCTIONS? #37

Open quartzjer opened 9 years ago

quartzjer commented 9 years ago

We're using addBitlashFunction so heavily with Pinoccio that we've hit the MAX wall hard, and have plans to go well above 256 even... I looked at bitlash-functions.c and couldn't see any quick fix to increase it higher due to how it masks the last function into the symval byte.

Do you have any ideas on what could be done to easily bump the limit even higher?

quartzjer commented 9 years ago

I tried a bit of quick-n-dirty approach here, hopefully there's more efficient ways but this seems to work in the meantime :)

https://github.com/Pinoccio/library-bitlash/commit/33d576580252c96ecbb1c2b7eaa71ca954652964