void ISGetProperties(const char *dev) { ISInit(); for (int i = 0; i < cameraCount; i++) { QHYCCD *camera = cameras[i]; if (dev == NULL || !strcmp(dev, camera->name)) { camera->ISGetProperties(dev); if (dev != NULL) break; } } }
void ISGetProperties(const char *dev) { ISInit(); if (cameraCount == 0) { IDMessage(nullptr, "No QHY cameras detected. Power on?"); return; } for (int i = 0; i < cameraCount; i++) { QHYCCD *camera = cameras[i]; if (dev == NULL || !strcmp(dev, camera->name)) { camera->ISGetProperties(dev); if (dev != NULL) break; } } }