()
| 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); |
no test coverage detected