[education/kstars] kstars/ekos: absoluteTemperature and deltaTemperature should be sent as a payload.

Jasem Mutlaq <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7aca80495149017d6cada9a73a19af83d5d02cbd by Jasem Mutlaq.
Committed on 16/08/2026 at 14:49.
Pushed by mutlaqja into branch 'master'.

absoluteTemperature and deltaTemperature should be sent as a payload.

M  +14   -3    kstars/ekos/manager.cpp

https://invent.kde.org/education/kstars/-/commit/7aca80495149017d6cada9a73a19af83d5d02cbd

diff --git a/kstars/ekos/manager.cpp b/kstars/ekos/manager.cpp
index e93826e343..a28035bc48 100644
--- a/kstars/ekos/manager.cpp
+++ b/kstars/ekos/manager.cpp
@@ -2629,6 +2629,17 @@ void Manager::initFocus()
 
         ekosLiveClient.get()->message()->updateFocusStatus(cStatus);
     });
+    connect(focusModule()->mainFocuser().get(), &Ekos::Focus::newFocusTemperatureDelta, this,
+            [this](double delta, double absTemperature, const QString &/*trainname*/)
+    {
+        QJsonObject cStatus =
+        {
+            {"absoluteTemperature", absTemperature},
+            {"deltaTemperature", delta}
+        };
+
+        ekosLiveClient.get()->message()->updateFocusStatus(cStatus);
+    });
     connect(focusModule()->mainFocuser().get(), &Ekos::Focus::newFocusAdvisorMessage, this, [this](const QString & message)
     {
         QJsonObject cStatus =
@@ -3211,9 +3222,9 @@ void Manager::wizardProfile()
 bool Manager::getCurrentProfile(QSharedPointer<ProfileInfo> &profile) const
 {
     // Get current profile
-    for (auto &pi : profiles)
-    {
-        if (profileCombo->currentText() == pi->name)
+for (auto &pi : profiles)
+{
+    if (profileCombo->currentText() == pi->name)
         {
             profile = pi;
             return true;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.