Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 09880cd

Browse files
committed
Backport ASI cameras enumeration fix
1 parent 0e08509 commit 09880cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/drivers/zwo_asi/zwo_asi_driver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "ASICamera2.h"
2121
#include "zwo_asi_imager.h"
2222
#include "zwoexception.h"
23+
#include <QDebug>
2324

2425
using namespace std;
2526

@@ -69,7 +70,8 @@ Driver::Cameras ZWO_ASI_Driver::cameras() const
6970
int index=0;
7071
for(int index=0; index<ncams; index++) {
7172
ASI_CAMERA_INFO info;
72-
ASI_CHECK << ASIGetCameraProperty(&info, index++) << string{"Get Camera Property"};
73+
ASI_CHECK << ASIGetCameraProperty(&info, index) << string{"Get Camera Property"};
74+
qDebug() << "ZWO camera index" << index << "is a" << info.Name;
7375
cameras.push_back(make_shared<ZWO_ASI_Camera>(info));
7476
}
7577
return cameras;

0 commit comments

Comments
 (0)