Skip to content

Commit

Permalink
CRLF->LF adjustments
Browse files Browse the repository at this point in the history
Change-Id: I9c89a91797b96b41006e0fed8263fc485920e916
  • Loading branch information
ev-mp committed Jun 21, 2021
1 parent e095839 commit aff22b7
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ private static bool IsLinux
get
{
//Spec https://docs.microsoft.com/en-us/dotnet/api/system.platformid?view=net-5
//MacOSX 6
//Other 7
//Unix 4
//Win32NT 2
//Win32S 0
//Win32Windows 1
//WinCE 3
//Xbox 5
//MacOSX 6
//Other 7
//Unix 4
//Win32NT 2
//Win32S 0
//Win32Windows 1
//WinCE 3
//Xbox 5
int p = (int)Environment.OSVersion.Platform;
return (p == 4) || (p == 6) || (p == 128);
}
Expand Down Expand Up @@ -534,10 +534,10 @@ public static ConsoleKey ConsoleGetKey(ConsoleKey[] possibleKeys, string prompt)
public static bool IsTheDeviceD400Series(Device dev)
{
bool res = false;
if (null != dev)
{
res = Regex.IsMatch(dev.Info[CameraInfo.Name].ToString(), @"(D4\d\d)");
if (!res)
if (null != dev)
{
res = Regex.IsMatch(dev.Info[CameraInfo.Name].ToString(), @"(D4\d\d)");
if (!res)
Console.WriteLine($"{Environment.NewLine}The devices of D400 series can be calibrated only!");
}
return res;
Expand Down

0 comments on commit aff22b7

Please sign in to comment.