MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / restart

Method restart

tools/xsbug/esptool.js:280–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 await this.downloadToFlash(data, offset, true, progress);
279 }
280 async restart() {
281 //@@ command -- flash end to restart!
282 this.#serial.set({DTR: false, RTS: true});
283
284 await delay(50);
285
286 this.#serial.set({DTR: false, RTS: false});
287 }
288 async erase(offset, size) {
289 if ((undefined === offset) && (undefined === size)) {
290 await this.command(Bootloader.ERASE_FLASH);

Callers 1

setup_neopixelsMethod · 0.45

Calls 2

delayFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected