kaluma-project / kaluma

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

Unnecessary 0.5s delay when flashing files? #620

Open jakeg opened 1 year ago

jakeg commented 1 year 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 1 year ago

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