Skip to content

Commit

Permalink
Merge pull request #50 from zivid/update-samples-that-load-settings-f…
Browse files Browse the repository at this point in the history
…rom-sample-data

Update samples that load settings from sample data
  • Loading branch information
SatjaSivcev authored Jan 5, 2022
2 parents 8ac5798 + f1a214f commit b27fa1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/Camera/Advanced/CaptureHDRLoop/CaptureHDRLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static void Main()
Console.WriteLine("Connecting to camera");
var camera = zivid.ConnectCamera();

var cameraModel = camera.Info.ModelName.Substring(0, 9);
var cameraModel = camera.Info.Model.ToString().Substring(0, 8);
int captures = 3;
for(int i = 1; i <= captures; i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static void Main()
var camera = zivid.ConnectCamera();

Console.WriteLine("Configuring settings from file");
var cameraModel = camera.Info.ModelName.Substring(0, 9);
var cameraModel = camera.Info.Model.ToString().Substring(0, 8);
var settingsFile = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
+ "/Zivid/Settings/" + cameraModel + "/Settings01.yml";
var settings = new Zivid.NET.Settings(settingsFile);
Expand Down

0 comments on commit b27fa1f

Please sign in to comment.