Skip to content

Commit f51db66

Browse files
committed
Increase the number of sync attempts per connection attempt
1 parent 155e131 commit f51db66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/flash/esp/rom_client/rom_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (rc *ROMClient) trySync() error {
305305
func (rc *ROMClient) sync() error {
306306
var err error
307307
// Usually there is no response to the first command, and the second is successful.
308-
for i := 0; i < 2; i++ {
308+
for i := 0; i < 5; i++ {
309309
err = rc.trySync()
310310
if err == nil {
311311
return nil

0 commit comments

Comments
 (0)