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

Method reset

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

Source from the content-addressed store, hash-verified

119 }
120 }
121 async reset() {
122 if (!this.#serial)
123 await this.buildSerial(this.#baud);
124
125 this.#serial.set({DTR: false, RTS: true});
126
127 this.#serial.purge(true, false);
128 await delay(50);
129
130 this.#serial.set({DTR: false, RTS: false});
131 }
132 async getInfo() {
133 const result = {};
134

Callers 6

beginMethod · 0.45
verifyChecksumFunction · 0.45
verifyChecksumFunction · 0.45
buffers.jsFile · 0.45
close.jsFile · 0.45
reset.jsFile · 0.45

Calls 4

buildSerialMethod · 0.95
delayFunction · 0.85
setMethod · 0.65
purgeMethod · 0.65

Tested by

no test coverage detected