Skip to content

Commit

Permalink
Fix Reset for esp8266
Browse files Browse the repository at this point in the history
  • Loading branch information
loucass003 committed Oct 7, 2024
1 parent 348dc47 commit dd60938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/Flasher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class Flasher(
serialInterface.setDTR(true)
serialInterface.setRTS(false)
Thread.sleep(50)
serialInterface.setRTS(true)
serialInterface.setDTR(false)
}

private fun resetAfterFlash() {
Expand Down
10 changes: 5 additions & 5 deletions src/test/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class LibraryTest: FlasherSerialInterface, FlashingProgressListener {
Flasher(this)
.addProgressListener(this)
// ESP32
.addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-0.bin").readBytes(), 4096)
.addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-1.bin").readBytes(), 32768)
.addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-2.bin").readBytes(), 57344)
.addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-3.bin").readBytes(), 65536)
// .addBin(File("C:\\Users\\llelievr\\Downloads\\firmware (1)\\firmware-part-0.bin").readBytes(), 0)
// .addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-0.bin").readBytes(), 4096)
// .addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-1.bin").readBytes(), 32768)
// .addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-2.bin").readBytes(), 57344)
// .addBin(File("C:\\Users\\llelievr\\Downloads\\firmware\\firmware-part-3.bin").readBytes(), 65536)
.addBin(File("C:\\Users\\llelievr\\Downloads\\firmware-part-0.bin").readBytes(), 0)
.flash(firstPort)
}

Expand Down

0 comments on commit dd60938

Please sign in to comment.