Skip to content

Commit

Permalink
Bugfix: apply monitor settings on monitor opening (#1604)
Browse files Browse the repository at this point in the history
Fix #1562
  • Loading branch information
cmaglie committed Dec 23, 2021
1 parent 8638657 commit 12adc53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func Monitor(ctx context.Context, req *rpc.MonitorRequest) (*PortProxy, *pluggab
return nil, nil, &arduino.FailedMonitorError{Cause: err}
}

for _, setting := range req.GetPortConfiguration().Settings {
m.Configure(setting.SettingId, setting.Value)
}

return &PortProxy{
rw: monIO,
changeSettingsCB: m.Configure,
Expand Down

0 comments on commit 12adc53

Please sign in to comment.