summaryrefslogtreecommitdiff
path: root/src/protocols/httpserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/httpserver.cpp')
-rw-r--r--src/protocols/httpserver.cpp11
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()};
}