I use indi-gphoto driver with Nikon D5500. Nikon D5500 can save JPEG & RAW(NEF) files simultaneously, but indi-gphoto driver allows JPEG or NEF only.
But JPEG+NEF format makes me easy to manage images on PC. So I modified the indi-gphoto driver so that it allows JPEG+NEF format.

You can see the source code below. The base Indi version is v1.8.5.
github.com/Nekomeshi/indi-gphoto

On JPEG+NEF format mode, camera sends GP_EVENT_FILE_ADDED event to indi driver two times when each of JPEG and NEF files are saved. So I modified the event for NEF file is ignored.
So when we choose JPEG+NEF format, camera records both JPEG and NEF file to its card, but only JPEG file is downloaded to PC.

The function I modified is gphoto_read_exposure_fd() in gphoto_driver.cpp, and ISNewSwitch() and Connect() in gphoto_ccd.cpp.

I checked it with D5500 only. But I'd like to hear your opinion or advice.

Read More...