Fixed SyncToCoordinates_WhenConnected_ThenReturnsExpectedResult

This commit is contained in:
2021-01-30 21:45:47 +00:00
parent 447ff3ace9
commit 778b36b7f5
2 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -2045,7 +2045,7 @@ namespace ASCOM.Meade.net
//LX200's - a "#" terminated string with the name of the object that was synced.
// Autostars & Autostar II - A static string: " M31 EX GAL MAG 3.5 SZ178.0'#"
if (result == string.Empty)
if (string.IsNullOrWhiteSpace(result))
throw new InvalidOperationException("Unable to perform sync");
// At least the classic LX200 low precision might not slew to the exact target position