. doing the trim of the trailing # after writing the log message.
. for LX800 scopes, trying to use a send string instead of send chars for GW command.
This commit is contained in:
@@ -428,7 +428,14 @@ namespace ASCOM.Meade.net
|
|||||||
// https://bitbucket.org/cjdskunkworks/meadeautostar497/issues/24/get-set-tracking#comment-60586901
|
// https://bitbucket.org/cjdskunkworks/meadeautostar497/issues/24/get-set-tracking#comment-60586901
|
||||||
if (command == (raw ? ":GW#" : "GW"))
|
if (command == (raw ? ":GW#" : "GW"))
|
||||||
{
|
{
|
||||||
result = SharedResourcesWrapper.SendChars(Tl, command, raw, count: 3);
|
switch (SharedResourcesWrapper.ProductName)
|
||||||
|
{
|
||||||
|
case TelescopeList.LX800:
|
||||||
|
result = SharedResourcesWrapper.SendString(Tl, command, raw);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
result = SharedResourcesWrapper.SendChars(Tl, command, raw, count: 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -111,9 +111,9 @@ namespace ASCOM.Meade.net
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = SharedSerial.ReceiveTerminated("#").TrimEnd('#');
|
var result = SharedSerial.ReceiveTerminated("#");
|
||||||
traceLogger.LogMessage("SendString", $"Received {result}", false);
|
traceLogger.LogMessage("SendString", $"Received {result}", false);
|
||||||
return result;
|
return result.TrimEnd('#');
|
||||||
}
|
}
|
||||||
catch (COMException ex)
|
catch (COMException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user