Skip to content

Commit

Permalink
Rename field for consistency (#154)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Aug 22, 2022
1 parent 2844ffb commit 8d13653
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nanoFirmwareFlasher.Tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class Program
private static AssemblyInformationalVersionAttribute _informationalVersionAttribute;
private static string _headerInfo;
private static CopyrightInfo _copyrightInfo;
private static NanoDeviceOperations _nanoDebuggerOperations;
private static NanoDeviceOperations _nanoDeviceOperations;

internal static string ExecutingPath;

Expand Down Expand Up @@ -97,7 +97,7 @@ await parsedArguments
}

// force clean-up
_nanoDebuggerOperations?.Dispose();
_nanoDeviceOperations?.Dispose();

return (int)_exitCode;
}
Expand Down Expand Up @@ -304,11 +304,11 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)

if (o.ListDevices)
{
_nanoDebuggerOperations = new NanoDeviceOperations();
_nanoDeviceOperations = new NanoDeviceOperations();

try
{
var connectedDevices = _nanoDebuggerOperations.ListDevices();
var connectedDevices = _nanoDeviceOperations.ListDevices();

if (connectedDevices.Count() == 0)
{
Expand Down Expand Up @@ -350,13 +350,13 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
return;
}

_nanoDebuggerOperations = new NanoDeviceOperations();
_nanoDeviceOperations = new NanoDeviceOperations();

if (o.DeviceDetails)
{
try
{
_exitCode = _nanoDebuggerOperations.GetDeviceDetails(o.SerialPort);
_exitCode = _nanoDeviceOperations.GetDeviceDetails(o.SerialPort);

// done here
return;
Expand All @@ -373,7 +373,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
{
try
{
_exitCode = await _nanoDebuggerOperations.UpdateDeviceClrAsync(
_exitCode = await _nanoDeviceOperations.UpdateDeviceClrAsync(
o.SerialPort,
_verbosityLevel);

Expand Down Expand Up @@ -402,7 +402,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
{
try
{
_exitCode = _nanoDebuggerOperations.DeployApplication(
_exitCode = _nanoDeviceOperations.DeployApplication(
o.SerialPort,
o.DeploymentImage,
_verbosityLevel);
Expand Down

0 comments on commit 8d13653

Please sign in to comment.