From 9cb881ce0aa8ce36ef97cdaa83ba1fc244cffab7 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 8 Dec 2024 00:39:58 +0800 Subject: [PATCH] =?UTF-8?q?938=E5=8A=A0=E5=AF=86=E8=8A=AF=E7=89=87?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E8=AE=BE=E5=A4=87=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/MicroPhoto.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/MicroPhoto.cpp b/app/src/main/cpp/MicroPhoto.cpp index 6cc9e202..2306bcfd 100644 --- a/app/src/main/cpp/MicroPhoto.cpp +++ b/app/src/main/cpp/MicroPhoto.cpp @@ -12,9 +12,11 @@ #include - - +#ifndef USING_N938 #define NRSEC_PATH "/dev/spidev0.0" +#else +#define NRSEC_PATH "/dev/spidev32766.0" +#endif #ifdef USING_BREAK_PAD #include "client/linux/handler/exception_handler.h" @@ -289,6 +291,7 @@ Java_com_xypower_mpapp_MicroPhotoService_init( NULL, true, -1); */ + char model[PROP_VALUE_MAX] = { 0 }; __system_property_get("ro.product.model", model);