Skip to content

Commit

Permalink
Deduplicate firmware update success messages sent via websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
krksgbr committed Apr 19, 2024
1 parent ad56fd2 commit 8e0e4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/dividat-driver/firmware/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func Command(flags []string) {
}
os.Exit(1)
}

fmt.Println("Success! Firmware transmitted to Senso.")
}

func updateByDiscovery(ctx context.Context, image io.Reader, onProgress OnProgress) (err error, suggestPowerCycling bool) {
Expand Down
1 change: 0 additions & 1 deletion src/dividat-driver/firmware/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func update(parentCtx context.Context, target service.Service, image io.Reader,
return err
}

onProgress("Success! Firmware transmitted to Senso.")
return nil
}

Expand Down

0 comments on commit 8e0e4a7

Please sign in to comment.