Skip to content

Commit

Permalink
Update zero units
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Jan 20, 2024
1 parent dab9a2f commit 617d2c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private async Task RunToSpecificPositions()
{
Resolver.Log.Info($"Moving in increments of {increment} degrees");

await stepper.GoTo(Angle.Zero, direction, rate);
await stepper.GoTo(new Angle(0), direction, rate);
await Task.Delay(1000);

var nextPosition = 0d;
Expand Down Expand Up @@ -162,7 +162,7 @@ private async Task RunToSpecificPositions()

var nextPosition = 360d;

await stepper.GoTo(Angle.Zero, direction, rate);
await stepper.GoTo(new Angle(0), direction, rate);
await Task.Delay(1000);

while (nextPosition > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private async Task<Length> ReadSingleValue()
{
return dataReceivedTaskCompletionSource.Task.Result;
}
return Length.Zero;
return new Length(0);
}

private void SerialPortDataReceived(object sender, SerialDataReceivedEventArgs e)
Expand Down

0 comments on commit 617d2c2

Please sign in to comment.