clean up code

This commit is contained in:
xIronic 2025-02-23 22:07:45 +01:00
parent 0f91510a76
commit 5f89d641dd

View File

@ -405,7 +405,6 @@ void JsonAPI::handleGetImageSnapshotCommand(const QJsonObject &message, const Js
{
QString replyMsg;
QString filetype = message["filetype"].toString();
const QStringList fileTypes{"BMP", "JPG", "PNG"};
const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority());
Image<ColorRgb> image = priorityInfo.image;
QImage snapshot(reinterpret_cast<const uchar *>(image.memptr()), image.width(), image.height(), qsizetype(3) * image.width(), QImage::Format_RGB888);
@ -466,7 +465,7 @@ void JsonAPI::handleInstanceDataCommand(const QJsonObject &message, const JsonAp
handleGetLedSnapshotCommand(message, cmd);
break;
default:
sendErrorReply("Unknown subcommand", cmd);
break;
}
}