Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil authored and Kamil committed Nov 11, 2018
1 parent ddc7e38 commit e2b5dc6
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions DSO/JyeScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@ public bool Connect()
Thread BackgroundReader = new Thread(ReadBuffer);
BackgroundReader.IsBackground = true;
BackgroundReader.Start();


var Ready = (DataFrames.ScopeControlDataFrames.ScopeReady)new AcknowledgedFrame().GetAcknowledgedFrame
(typeof(DataFrames.ScopeControlDataFrames.EnterUSBScopeMode), typeof(DataFrames.ScopeControlDataFrames.ScopeReady), this);

ScopeConfig = GetCurrentConfig();
PopulateConfigDictionaries();
_GetCurrentParameters();
_scopeType = Ready.ScopeType;
return true;
try
{
var Ready = (DataFrames.ScopeControlDataFrames.ScopeReady)new AcknowledgedFrame().GetAcknowledgedFrame
(typeof(DataFrames.ScopeControlDataFrames.EnterUSBScopeMode), typeof(DataFrames.ScopeControlDataFrames.ScopeReady), this);
ScopeConfig = GetCurrentConfig();
PopulateConfigDictionaries();
_GetCurrentParameters();
_scopeType = Ready.ScopeType;
return true;
} catch (FrameNotAcknowledgedException)
{
return false;
}
}

public bool Disconnect()
Expand Down

0 comments on commit e2b5dc6

Please sign in to comment.