CrashOverride85 / zc95

4 channel EStim box inspired by the mk312bt, with Lua scripting support
GNU General Public License v3.0
46 stars 12 forks source link

fix issue where large script would casue a crash on upload #92

Closed CrashOverride85 closed 7 months ago

CrashOverride85 commented 7 months ago

See #81 & #91

Flyer133 commented 7 months ago

Hello CrashOverride!

I tried to modify sources files and compile to have a new firmware. 1 or 2 errors remains when cmake compile. I tried to correct them and all is OK, the .elf and .2fu files are created. I upload the firmware on the RP2 -- all is OK I power on the box -- all is OK but when I try to upload a script (a small script not modified as toggle.lua) a script error appears on the cmd output

D:\XXX\ZC95\zc95-1.8.1\zc95-1.8.1\remote_access>lua_upload.py --script .\lua\toggle.lua --ip 192.168.137.229 --index 1 Connecting Connection opened Uploading: |██████████████████████████████████████████████████| 100.0% Complete

Got error message: Invalid script: [string "_delay zc.ChannelPu zc.ChannelPulseMs..."]:1.00000: '=' expected near 'zc' Websocket connection closed Failed

If you have a working 2fu file, i will happy! Regards JR

CrashOverride85 commented 7 months ago

zc95.uf2.zip I've added a zipped uf2 built from this branch. It allows that script to upload and run, but it's still a bit of a work in progress, and I think it's going to be fairly close to out of memory errors