void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num) { ISInit(); for (int i = 0; i < cameraCount; i++) { FishCampCCD *camera = cameras[i]; if (dev == nullptr || !strcmp(dev, camera->name)) { camera->ISNewSwitch(dev, name, states, names, num); if (dev != nullptr) break; } } //This turns the LibFishcamp fcusb logging on and off along with the INDI Fishcamp file logging. if (!strcmp(name, "LOG_OUTPUT")) { if(INDI::Logger::ConfigurationS[1].s == ISS_ON) { fcUsb_setLogging(true); IDLog("Setting Starfish Driver File Log On\n"); } else { fcUsb_setLogging(false); IDLog("Setting Starfish Driver File Log Off\n"); } } }
void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num) { ISInit(); for (int i = 0; i < cameraCount; i++) { FishCampCCD *camera = cameras[i]; if (dev == NULL || !strcmp(dev, camera->name)) { camera->ISNewSwitch(dev, name, states, names, num); if (dev != NULL) break; } } }