Skip to content

Commit

Permalink
change programmer baud rate to work with more esp32 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Nov 22, 2024
1 parent 19f9839 commit 51d1f92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"cSpell.words": [
"adafruit",
"APIP",
"baudrate",
"Benoit",
"Blanchon",
"BSED",
"colspan",
"Comms",
"darkgrey",
Expand Down Expand Up @@ -31,6 +33,8 @@
"msgin",
"NEOPIXEL",
"newrxdata",
"nopsram",
"qtpy",
"RCCHECK",
"rclc",
"rcmgames",
Expand Down
6 changes: 3 additions & 3 deletions docs/programmer/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async function upload() {

const flashOptionsMain = {
transport,
baudrate: 460800,
baudrate: 115200,
enableTracing: false,
debugLogging: false,
terminal: espLoaderTerminal
Expand All @@ -186,9 +186,9 @@ async function upload() {
flashMode: "keep",
compress: true,
eraseAll: true,
baudrate: 460800,
baudrate: 115200,
reportProgress: (fileIndex, written, total) => {
console.log("PROGRESS:" + fileIndex + "," + written + "," + total);
// console.log("PROGRESS:" + fileIndex + "," + written + "," + total);
document.getElementById("upload-progress").innerHTML = Math.floor(1 + (fileIndex * 10) + ((fileIndex < 4) ? 9 * (written / total) : 58 * (written / total))) + "%";
},
calculateMD5Hash: (image) => CryptoJS.MD5(CryptoJS.enc.Latin1.parse(image))
Expand Down

0 comments on commit 51d1f92

Please sign in to comment.