Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Dec 28, 2022
1 parent 2607eb3 commit 113cfe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Meshtastic.Cli/Commands/FactoryResetCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public override async Task OnCompleted(FromDeviceMessage packet, DeviceStateCont
Logger.LogInformation("Factory reseting device...");
var adminMessageFactory = new AdminMessageFactory(container);
var adminMessage = adminMessageFactory.CreateFactoryResetMessage();
await Connection.WriteToRadio(ToRadioMessageFactory.CreateMeshPacketMessage(adminMessage),
(fromDevice, container) =>
{
return Task.FromResult(fromDevice != null);
});
await Connection.WriteToRadio(ToRadioMessageFactory.CreateMeshPacketMessage(adminMessage), AnyResponseReceived);
}
}
2 changes: 1 addition & 1 deletion Meshtastic.Cli/Commands/FixedPositionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public FixedPositionCommand(string name, string description, Option<string> port
});
AddArgument(latArg);

var lonArg = new Argument<decimal>("lat", description: "Longitude of the node (decimal format)");
var lonArg = new Argument<decimal>("lon", description: "Longitude of the node (decimal format)");
lonArg.AddValidator(result =>
{
if (Math.Abs(result.GetValueForArgument(lonArg)) > 180)
Expand Down

0 comments on commit 113cfe2

Please sign in to comment.