Commit 4de3a940 authored by Don Gagne's avatar Don Gagne

Merge pull request #1240 from basil-huber/videoDownlinkSaving

Repaired feature to save images from video downlink (fixes #1239)
parents 3fef8e4d 84275254
......@@ -1361,15 +1361,16 @@ void HUD::copyImage(UASInterface* uas)
if (u)
{
QImage temp_im = u->getImage();
if (temp_im.byteCount() > 0) {
this->glImage = temp_im;
}
// Save to directory if logging is enabled
if (imageLoggingEnabled)
if (temp_im.byteCount() > 0)
{
u->getImage().save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter));
imageLogCounter++;
this->glImage = temp_im;
// Save to directory if logging is enabled
if (imageLoggingEnabled)
{
temp_im.save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter));
imageLogCounter++;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment