fix(calibration): gesture wording matches derivation (todo 9); restore build.sh exec bit
This commit is contained in:
1 parent
ee6781ef31
commit
48eb19dd43
5 files changed
+53
-7
No files matched your search
@@ -2,7 +2,7 @@
|
||||
// -O2 -finline-functions codegen bug that silently truncates/corrupts string
|
||||
// literals in this translation unit (reproduced on pre-existing code too, not
|
||||
// just new additions - e.g. CalibrateCursor's "Start capture first, then
|
||||
// raise your right arm to calibrate" truncates to "Start caH" without this).
|
||||
// raise your right arm up and out to calibrate" truncates to "Start caH" without this).
|
||||
// Disabling just this one pass for the file keeps -O2 everywhere else in the
|
||||
// build while avoiding the bug; no build-script change needed.
|
||||
#pragma GCC optimize ("no-inline-functions")
|
||||
@@ -632,7 +632,7 @@ void StopCapture() {
|
||||
// the hold does not block the UI message loop.
|
||||
void CalibrateCursor() {
|
||||
if (!g_app.running) {
|
||||
SetStatus("Start capture first, then raise your right arm to calibrate");
|
||||
SetStatus("Start capture first, then raise your right arm up and out to calibrate");
|
||||
return;
|
||||
}
|
||||
{
|
||||
@@ -640,7 +640,7 @@ void CalibrateCursor() {
|
||||
g_app.cal_samples.clear();
|
||||
}
|
||||
g_app.cal_active = true;
|
||||
SetStatus("Calibrating cursor: hold your right arm fully extended...");
|
||||
SetStatus("Calibrating cursor: raise your right arm up and out toward the top corner of the screen - hand clearly above your shoulder and out to the side...");
|
||||
std::thread([] {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1800));
|
||||
g_app.cal_active = false;
|
||||
|
||||
Reference in new issue
Block a user