Skip to content

Commit

Permalink
Merge pull request #2 from jblam/specifiable-baud-rate
Browse files Browse the repository at this point in the history
Allow an optional baud-rate parameter in the set json
  • Loading branch information
jblam authored Apr 7, 2021
2 parents d285626 + 24d12b3 commit 042f21b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Multiflash/App/ConfigurationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConfigurationViewModel : INotifyPropertyChanged
{
public ConfigurationViewModel(BinarySet binarySet, string comPort)
{
Connection = SerialConnection.Open(comPort, 115200);
Connection = SerialConnection.Open(comPort, binarySet.BaudRate);
GetStatus = Command.Create(async () => StatusValue = await Connection.Prompt("?", true));
Verifications = binarySet.Verifications.Select(v => new VerificationViewModel(v, Connection)).ToList();
Parameters = binarySet.ConfigTemplate?.Parameters.Select(p => new ParameterViewModel(p)).ToList() as IReadOnlyCollection<ParameterViewModel>
Expand Down
1 change: 1 addition & 0 deletions Multiflash/Flashing/BinarySet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class BinarySet
public string Description { get; init; } = string.Empty;
public IReadOnlyCollection<Verification> Verifications { get; init; } = Array.Empty<Verification>();
public ConfigTemplate? ConfigTemplate { get; init; }
public int BaudRate { get; init; } = 115200;

public static async Task<(string extractLocation, BinarySet? contents)> Extract(string archivePath)
{
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

A GUI tool for flashing Arduino-like devices with Arduino-like firmware.

Only Windows 10 2004 and above is officially supported. Linux and OSX are not supported.

## Installation instructions

Extract the zip file and run `multiflash.exe`.

A valid Multiflash archive must be provided by the microcontroller firmware author.

## What

A GUI which provides a drag-drop UX for flashing precompiled binaries.
Expand Down

0 comments on commit 042f21b

Please sign in to comment.