Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions nanoFirmwareFlasher.Library/FirmwarePackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class FirmwarePackage : IDisposable
private readonly bool _preview;

private const string _readmeContent = "This folder contains nanoFramework firmware files. Can safely be removed.";

/// <summary>
/// Path with the base location for firmware packages.
/// </summary>
Expand Down Expand Up @@ -681,7 +681,13 @@ private void FindBooterStartAddress()
{
uint address;

// find out what's the CLR block start
if (string.IsNullOrEmpty(NanoClrFile))
{
// nothing to do here
return;
}

// find out what's the booter block start

// do this by reading the HEX format file...
var textLines = File.ReadAllLines(NanoBooterFile);
Expand Down Expand Up @@ -730,6 +736,12 @@ private void FindClrStartAddress()
{
uint address;

if (string.IsNullOrEmpty(NanoClrFile))
{
// nothing to do here
return;
}

// find out what's the CLR block start

// do this by reading the HEX format file...
Expand Down