修复编译错误

hdrplus
Matthew 1 year ago
parent cc91a658a0
commit 39351322bc

@ -6,6 +6,7 @@
#include "TerminalDevice.h" #include "TerminalDevice.h"
#include "PhoneDevice.h" #include "PhoneDevice.h"
#include "PhoneDevice2.h" #include "PhoneDevice2.h"
#include <LogThread.h>
#include <sys/system_properties.h> #include <sys/system_properties.h>
#include <AndroidHelper.h> #include <AndroidHelper.h>
#include <linux/spi/spidev.h> #include <linux/spi/spidev.h>
@ -689,12 +690,12 @@ Java_com_xypower_mpapp_MicroPhotoService_infoLog(
if (env->GetStringUTFLength(msg) <=0) if (env->GetStringUTFLength(msg) <=0)
{ {
return JNI_FALSE; return;
} }
const char *msgStr = env->GetStringUTFChars(msg, 0); const char *msgStr = env->GetStringUTFChars(msg, 0);
XYLOG(XYLOG_SEVERITY_INFO, msgStr); XYLOG(XYLOG_SEVERITY_INFO, msgStr);
env->ReleaseStringUTFChars(outputPath, outputPathStr); env->ReleaseStringUTFChars(msg, msgStr);
} }
extern "C" JNIEXPORT void JNICALL extern "C" JNIEXPORT void JNICALL

Loading…
Cancel
Save