summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-08 22:09:09 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-08 22:09:09 (GMT)
commite9a3db10dfdcddb90825a7b3f081b5826bc8c908 (patch)
tree8a173f93862d6f3132da952b8d8702e70a561de9
parent8652a42730897d59caf18ae03baf1e718e29c25e (diff)
Fix wrong state names. Need to change them all anyway
-rw-r--r--kstars/ekos/guide/externalguide/linguider.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kstars/ekos/guide/externalguide/linguider.cpp b/kstars/ekos/guide/externalguide/linguider.cpp
index 6fd99bb..105037c 100644
--- a/kstars/ekos/guide/externalguide/linguider.cpp
+++ b/kstars/ekos/guide/externalguide/linguider.cpp
@@ -76,7 +76,7 @@ bool LinGuider::Connect()
if (connection == DISCONNECTED)
{
connection = CONNECTING;
- tcpSocket->connectToHost(Options::LinGuiderHost(), Options::LinGuiderPort());
+ tcpSocket->connectToHost(Options::linGuiderHost(), Options::linGuiderPort());
}
// Already connected, let's connect equipment
else
@@ -151,12 +151,12 @@ void LinGuider::readLinGuider()
void LinGuider::processJSON(const QJsonObject &jsonObj)
{
- LinGuiderMessageType messageType = LinGuider_UNKNOWN;
+ LinGuiderMessageType messageType = LINGUIDER_UNKNOWN;
bool result = false;
if (jsonObj.contains("Event"))
{
- messageType = LinGuider_EVENT;
+ messageType = LINGUIDER_EVENT;
processLinGuiderEvent(jsonObj);
if (event == Alert)
@@ -164,13 +164,13 @@ void LinGuider::processJSON(const QJsonObject &jsonObj)
}
else if (jsonObj.contains("error"))
{
- messageType = LinGuider_ERROR;
+ messageType = LINGUIDER_ERROR;
result = false;
processLinGuiderError(jsonObj);
}
else if (jsonObj.contains("result"))
{
- messageType = LinGuider_RESULT;
+ messageType = LINGUIDER_RESULT;
result = true;
}
@@ -197,7 +197,7 @@ void LinGuider::processJSON(const QJsonObject &jsonObj)
break;
case EQUIPMENT_CONNECTING:
- if (messageType == LinGuider_RESULT)
+ if (messageType == LINGUIDER_RESULT)
{
if (result)
{