kaluma-project / kaluma

A tiny JavaScript runtime for RP2040 (Raspberry Pi Pico)
https://kalumajs.org
Apache License 2.0
632 stars 38 forks source link

Unnecessary 0.5s delay when flashing files? #620

Open jakeg opened 11 months ago

jakeg commented 11 months ago

Is this delay really needed?

https://github.com/kaluma-project/kaluma/blob/3bf77ea1b7278b9d236415f7df1609e0a55d10b0/src/repl.c#L509

... it makes flashing new usercode to the Pico take 0.5s more than it maybe needs to.

niklauslee commented 11 months ago

Just for safe YMODEM communication. it's not necessary. (Some YMODEM client failed without delay when we tested)