Unverified Commit 12adc538 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Bugfix: apply monitor settings on monitor opening (#1604)

Fix #1562
parent 86386576
...@@ -84,6 +84,10 @@ func Monitor(ctx context.Context, req *rpc.MonitorRequest) (*PortProxy, *pluggab ...@@ -84,6 +84,10 @@ func Monitor(ctx context.Context, req *rpc.MonitorRequest) (*PortProxy, *pluggab
return nil, nil, &arduino.FailedMonitorError{Cause: err} return nil, nil, &arduino.FailedMonitorError{Cause: err}
} }
for _, setting := range req.GetPortConfiguration().Settings {
m.Configure(setting.SettingId, setting.Value)
}
return &PortProxy{ return &PortProxy{
rw: monIO, rw: monIO,
changeSettingsCB: m.Configure, changeSettingsCB: m.Configure,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment