diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2026-03-06 23:21:09 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2026-03-06 23:21:09 +0100 |
| commit | 7703c9efc6768d3a25eec4266594ab594cc91d4c (patch) | |
| tree | fde7579fab891ecd9117547bee69b4e4b74b9348 /src/protocols/httpserver.cpp | |
| parent | 05f0938a65c4f8c330791097680e1e094260bb60 (diff) | |
calibrated with fake Xconflicting_master
Diffstat (limited to 'src/protocols/httpserver.cpp')
| -rw-r--r-- | src/protocols/httpserver.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/protocols/httpserver.cpp b/src/protocols/httpserver.cpp index 3ca1f5c..219bd76 100644 --- a/src/protocols/httpserver.cpp +++ b/src/protocols/httpserver.cpp @@ -185,10 +185,19 @@ QHttpServerResponse HttpServer::GET_profile() { const auto image = m_scanner->camera()->getImage(); const auto pixels = image->sharedPixels(); - const auto profile = Profile{*pixels, ::calibrationTableZ, ::calibrationTableX}; + const auto profile = Profile{*pixels, + m_scanner->calibrationTableZ(), + m_scanner->calibrationTableX()}; const QJsonObject json{profile}; + static bool done{false}; + + if (!done) { + qDebug() << json; + done = true; + } + return QHttpServerResponse{QJsonDocument{json}.toJson()}; } |
