|
|
|
@ -716,7 +716,7 @@ Java_com_xypower_mpapp_MicroPhotoService_importPublicKeyFile(
|
|
|
|
|
// NrsecSpiPort spi("/dev/mtkgpioctrl");
|
|
|
|
|
// NrsecSpiPort spi("/dev/spidevSE");
|
|
|
|
|
// const char *port = "/dev/mtkgpioctrl";
|
|
|
|
|
const char *port = "/dev/spidevSE";
|
|
|
|
|
const char *port = "/dev/spidev0.0";
|
|
|
|
|
|
|
|
|
|
if (!nrsec.Open(port))
|
|
|
|
|
{
|
|
|
|
@ -750,7 +750,7 @@ Java_com_xypower_mpapp_MicroPhotoService_importPublicKey(
|
|
|
|
|
|
|
|
|
|
NrsecPort nrsec;
|
|
|
|
|
// const char *port = "/dev/mtkgpioctrl";
|
|
|
|
|
const char *port = "/dev/spidevSE";
|
|
|
|
|
const char *port = "/dev/spidev0.0";
|
|
|
|
|
int byteCertLen = env->GetArrayLength(cert);
|
|
|
|
|
if (byteCertLen <= 0)
|
|
|
|
|
{
|
|
|
|
|