Fiex qr code show bug.
This commit is contained in:
parent
12e1555ac3
commit
57fea3c641
|
@ -592,7 +592,18 @@ void show_qr_picture_page(lv_obj_t* obj)
|
||||||
// const char *data = "https://github.com/topics/littlevgl";
|
// const char *data = "https://github.com/topics/littlevgl";
|
||||||
#define QR_DATA_LENGTH 1024
|
#define QR_DATA_LENGTH 1024
|
||||||
char qr_date[QR_DATA_LENGTH] = {0};
|
char qr_date[QR_DATA_LENGTH] = {0};
|
||||||
snprintf(qr_date, QR_DATA_LENGTH, qr_code_str, puiPara->ModuleImei, puiPara->SimIccidA, puiPara->SimIccidA, "true");
|
if (sf_cardv_get_is_esim() == 1)
|
||||||
|
{
|
||||||
|
snprintf(qr_date, QR_DATA_LENGTH, qr_code_str, puiPara->ModuleImei, puiPara->SimIccidA, puiPara->SimIccidA, "true");
|
||||||
|
}
|
||||||
|
// else if (sf_cardv_get_is_esim() == 0)
|
||||||
|
// {
|
||||||
|
// snprintf(qr_date, QR_DATA_LENGTH, qr_code_str, puiPara->ModuleImei, puiPara->SimIccidA, puiPara->SimIccidA, "false");
|
||||||
|
// }
|
||||||
|
else
|
||||||
|
{
|
||||||
|
snprintf(qr_date, QR_DATA_LENGTH, qr_code_str, puiPara->ModuleImei, puiPara->SimIccidA, puiPara->SimIccidA, "false");
|
||||||
|
}
|
||||||
|
|
||||||
if(obj){
|
if(obj){
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ void sf_cardv_4G_status_set(UINT8 status);
|
||||||
UINT8 sf_cardv_4G_status_get(void);
|
UINT8 sf_cardv_4G_status_get(void);
|
||||||
void sf_cardv_set_sim_insert(UINT8 sim);
|
void sf_cardv_set_sim_insert(UINT8 sim);
|
||||||
UINT8 sf_cardv_get_sim_insert(void);
|
UINT8 sf_cardv_get_sim_insert(void);
|
||||||
void sf_cardv_set_is_esim(UINT8 flag);
|
void sf_cardv_set_is_esim(int flag);
|
||||||
UINT8 sf_cardv_get_is_esim(void);
|
UINT8 sf_cardv_get_is_esim(void);
|
||||||
void sf_cardv_set_operationSelectResp(UINT8 resp);
|
void sf_cardv_set_operationSelectResp(UINT8 resp);
|
||||||
UINT8 sf_cardv_get_operationSelectResp(void);
|
UINT8 sf_cardv_get_operationSelectResp(void);
|
||||||
|
|
|
@ -71,7 +71,7 @@ UINT16 AutoOfftime = 0;
|
||||||
BOOL isGoing2Pir = FALSE;
|
BOOL isGoing2Pir = FALSE;
|
||||||
static UINT8 NetWorkFlag = 0; //SF_4G_STATUS_E
|
static UINT8 NetWorkFlag = 0; //SF_4G_STATUS_E
|
||||||
static UINT8 simCardInsert = 0;
|
static UINT8 simCardInsert = 0;
|
||||||
static UINT8 g_esim_flag = 0;
|
static int g_esim_flag = 0;
|
||||||
static UINT8 operationSelectResp = 0; //WIFICameraErrCode_t
|
static UINT8 operationSelectResp = 0; //WIFICameraErrCode_t
|
||||||
UINT8 RespFlag = 0;
|
UINT8 RespFlag = 0;
|
||||||
static BOOL IsMenu = FALSE;
|
static BOOL IsMenu = FALSE;
|
||||||
|
@ -2502,7 +2502,7 @@ UINT8 sf_cardv_get_sim_insert(void)
|
||||||
return simCardInsert;
|
return simCardInsert;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sf_cardv_set_is_esim(UINT8 flag)
|
void sf_cardv_set_is_esim(int flag)
|
||||||
{
|
{
|
||||||
g_esim_flag = flag;
|
g_esim_flag = flag;
|
||||||
printf("cardv g_esim_flag:%d\n",g_esim_flag);
|
printf("cardv g_esim_flag:%d\n",g_esim_flag);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user