-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add web-serial-polyfill to support flashing from android devices
- Loading branch information
1 parent
5c78914
commit dd2f6d2
Showing
2 changed files
with
499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,14 @@ | |
|
||
</div> | ||
|
||
<!-- setup web-serial-polyfill --> | ||
<script type="module"> | ||
import { serial } from "./js/[email protected]/dist/serial.js"; | ||
if(!navigator.serial && navigator.usb){ | ||
navigator.serial = serial; | ||
} | ||
</script> | ||
|
||
<!-- setup esptool-js --> | ||
<script type="module"> | ||
import { ESPLoader, Transport } from "./js/[email protected]/bundle.js"; | ||
|
Oops, something went wrong.