Skip to content

Commit bed2a49

Browse files
committed
Fix QHY nickname support
1 parent e861b8d commit bed2a49

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

indi-qhy/qhy_ccd.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ bool QHYCCD::initProperties()
259259
IUFillTextVector(&GPSDataNowTP, GPSDataNowT, 4, getDeviceName(), "GPS_DATA_NOW", "Now", GPS_DATA_TAB, IP_RO, 60, IPS_IDLE);
260260

261261
addAuxControls();
262+
addNicknameControl();
262263
setDriverInterface(getDriverInterface());
263264

264265
return true;
@@ -2619,6 +2620,11 @@ void QHYCCD::logQHYMessages(const std::string &message)
26192620
LOGF_DEBUG("%s", message.c_str());
26202621
}
26212622

2623+
void QHYCCD::nicknameSet(const char *nickname)
2624+
{
2625+
saveNicknameId(nickname, m_CamID);
2626+
}
2627+
26222628
void QHYCCD::debugTriggered(bool enable)
26232629
{
26242630
// For some reason QHYSDK does not define this for MacOS! Needs to be fixed

indi-qhy/qhy_ccd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class QHYCCD : public INDI::CCD, public INDI::FilterInterface
7171
virtual bool AbortExposure() override;
7272

7373
// Debug
74+
virtual void nicknameSet(const char *nickname) override;
7475
virtual void debugTriggered(bool enable) override;
7576

7677
// CCD

0 commit comments

Comments
 (0)