From 7e210cf455ebfc01b46bcd93881a5e877747ba80 Mon Sep 17 00:00:00 2001 From: dongsen Date: Thu, 19 Mar 2020 00:40:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=9C=A8C=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=B8=AASleep=EF=BC=8C=E8=BF=99=E4=B8=AAapi?= =?UTF-8?q?=E5=9C=A8v7=E4=B8=AD=E4=BC=9A=E5=87=BA=E7=8E=B0=E5=B4=A9?= =?UTF-8?q?=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- czxing/src/main/cpp/ImageScheduler.cpp | 3 ++- sample/build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/czxing/src/main/cpp/ImageScheduler.cpp b/czxing/src/main/cpp/ImageScheduler.cpp index f7725c5a..3767dd34 100644 --- a/czxing/src/main/cpp/ImageScheduler.cpp +++ b/czxing/src/main/cpp/ImageScheduler.cpp @@ -73,7 +73,8 @@ void ImageScheduler::start() { preTreatMat(frameData); isProcessing.store(false); } - usleep(50000); + // 在V7环境下会崩溃 +// usleep(50000); } } diff --git a/sample/build.gradle b/sample/build.gradle index f4a09301..3b0c9323 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -57,8 +57,8 @@ android { dependencies { debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-3' -// implementation project(':czxing') - implementation 'me.devilsen:czxing:1.0.3' + implementation project(':czxing') +// implementation 'me.devilsen:czxing:1.0.3' implementation rootProject.ext.appcompat testImplementation rootProject.ext.junit