diff --git a/source/Camera/Advanced/CaptureHDRLoop/CaptureHDRLoop.cs b/source/Camera/Advanced/CaptureHDRLoop/CaptureHDRLoop.cs index 5cd02f7..7e41d1f 100644 --- a/source/Camera/Advanced/CaptureHDRLoop/CaptureHDRLoop.cs +++ b/source/Camera/Advanced/CaptureHDRLoop/CaptureHDRLoop.cs @@ -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++) { diff --git a/source/Camera/Basic/CaptureWithSettingsFromYML/CaptureWithSettingsFromYML.cs b/source/Camera/Basic/CaptureWithSettingsFromYML/CaptureWithSettingsFromYML.cs index 23b7720..86befef 100644 --- a/source/Camera/Basic/CaptureWithSettingsFromYML/CaptureWithSettingsFromYML.cs +++ b/source/Camera/Basic/CaptureWithSettingsFromYML/CaptureWithSettingsFromYML.cs @@ -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);