Skip to content

Commit

Permalink
Merge pull request #558 from WildernessLabs/hide_corupt_firmware_message
Browse files Browse the repository at this point in the history
Filter bad dfu messages and ignore mpak folder when deploying
  • Loading branch information
adrianstevens authored May 3, 2024
2 parents c74b69f + b533f40 commit e8501b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/v2/Meadow.Cli/Meadow.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Authors>Wilderness Labs, Inc</Authors>
<Company>Wilderness Labs, Inc</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2.0.38.0</PackageVersion>
<PackageVersion>2.0.39.0</PackageVersion>
<Platforms>AnyCPU</Platforms>
<PackageProjectUrl>http://developer.wildernesslabs.co/Meadow/Meadow.CLI/</PackageProjectUrl>
<RepositoryUrl>https://github.com/WildernessLabs/Meadow.CLI</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ namespace Meadow.CLI;

public static class Constants
{
public const string CLI_VERSION = "2.0.38.0";
public const string CLI_VERSION = "2.0.39.0";
}
10 changes: 6 additions & 4 deletions Source/v2/Meadow.Dfu/DfuUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ private static void FormatDfuOutput(string logLine, ILogger? logger, DfuFlashFor
}
else //Console out
{
Debug.WriteLine(logLine);
Console.Write(logLine);

Console.Write(logLine.Contains("%") ? "\r" : "\r\n");
if (!logLine.Contains("Device's firmware is corrupt") &&
!logLine.Contains("null"))
{
Console.Write(logLine);
Console.Write(logLine.Contains("%") ? "\r" : "\r\n");
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion Source/v2/Meadow.Tooling.Core/Package/PackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ void FindApp(string directory, List<FileInfo> fileList)
{
var shortname = Path.GetFileName(dir);

if (shortname == PostLinkDirectoryName || shortname == PreLinkDirectoryName)
if (shortname == PostLinkDirectoryName ||
shortname == PreLinkDirectoryName ||
shortname == PackageOutputDirectoryName)
{
continue;
}
Expand Down

0 comments on commit e8501b1

Please sign in to comment.