Skip to content

Commit

Permalink
Wait 15 seconds for tftp startup
Browse files Browse the repository at this point in the history
  • Loading branch information
krksgbr committed Apr 3, 2024
1 parent ba9ad8e commit eb5da79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dividat-driver/firmware/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ func Update(parentCtx context.Context, image io.Reader, deviceSerial *string, co
}
}

onProgress("Waiting 5 seconds to ensure proper TFTP startup")
onProgress("Waiting 15 seconds to ensure proper TFTP startup")
// 4: Transmit firmware via TFTP
time.Sleep(5 * time.Second) // Wait to ensure proper TFTP startup
time.Sleep(15 * time.Second) // Wait to ensure proper TFTP startup
err := putTFTP(dfuHost, tftpPort, image, onProgress)
if err != nil {
fail = err
Expand Down

0 comments on commit eb5da79

Please sign in to comment.