diff --git a/implementations/main.cpp b/implementations/main.cpp index 36c2a3c..1a09b32 100644 --- a/implementations/main.cpp +++ b/implementations/main.cpp @@ -1232,6 +1232,10 @@ public: lastAccepted = enrol.Accepted(); onStage(enrol.Accepted(), enrol.Total()); } else { + // The press produced a touch the trustlet did not turn + // into a sample: too close to the previous position, + // below the coverage or quality threshold, or outside + // the overlap band. onRetry(); } pressHadTouch = false; @@ -1596,12 +1600,18 @@ private: auto o = session_.Enrol( j.uid, cancel_, [&](int accepted, int total) { - (void)accepted; (void)total; + // Logged as well as signalled. A run whose refusals + // exist only as D-Bus traffic cannot be counted from + // the transcript afterwards -- and a grep for them + // returning nothing was read once as "the thresholds + // refused nothing", which was wrong. + std::println(" enrol: sample ACCEPTED ({}/{})", accepted, total); auto ev = std::make_unique(Event{ .kind = Event::Kind::EnrollStatus }); ev->status = "enroll-stage-passed"; PostEvent(std::move(ev)); }, [&] { + std::println(" enrol: sample REFUSED (retry-scan)"); auto ev = std::make_unique(Event{ .kind = Event::Kind::EnrollStatus }); ev->status = "enroll-retry-scan"; PostEvent(std::move(ev));