Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Dec 25, 2024
1 parent e775fe8 commit 1d22541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion indi-gphoto/gphoto_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ int gphoto_read_exposure_fd(gphoto_driver *gphoto, int fd)
//DEBUGDEVICE(device, INDI::Logger::DBG_DEBUG, "Unknown event.");
break;
case GP_EVENT_TIMEOUT:
{
// If already downloaded, then return immediately.
if (downloadComplete)
{
Expand All @@ -1449,10 +1450,12 @@ int gphoto_read_exposure_fd(gphoto_driver *gphoto, int fd)
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Event timed out after %d ms (elapsed: %d ms).", waitMS, elapsed);
pthread_mutex_unlock(&gphoto->mutex);
return -1;
break;
}
break;

default:
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Got unexpected message: %d", event);
break;
}
}
return GP_OK;
Expand Down

0 comments on commit 1d22541

Please sign in to comment.