what about replace base[i] = 0; with base.fill(0);in function prepare?
base[i] = 0;
base.fill(0);
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
what about replace
base[i] = 0;
withbase.fill(0);
in function prepare?