Commit 33aadbbb authored by 张金硕's avatar 张金硕

feat:新增只有写入UUID才显示UUID

parent b8131a55
......@@ -373,5 +373,15 @@ uint8_t Get_Talking_PhoneBookValid(void)
return 0;
}
uint8_t Get_UUID_UDSStatus(void)
{
for(uint8_t i=0;i<21;i++)
{
if(UUIDConfigBuf[i]!=0xFF)
return 1;
}
return 0;
}
......@@ -40,6 +40,7 @@ static const uint8_t SW_Version[3] = {SW_EXTERNAL_VERSION};
extern void BlueToothService(void);
extern uint8_t Get_Talking_PhoneBookValid(void);
extern uint8_t Get_UUID_UDSStatus(void);
extern _PICID_Struct PicObj;
extern _QRCODE_RECT QRCode_Rect;
extern uint8_t PhoneNumber[40];
......
......@@ -5167,10 +5167,16 @@ void AMT630H_GUI_Display_Navigation_Area(void)
SetPagePic(GRAPHICS_PAGE_0, Pic_0495_655_197);
SetPagePic(GRAPHICS_PAGE_0, Pic_0496_410_197);
SetPagePic(GRAPHICS_PAGE_0, Pic_0498_411_252); /*UUID*/
if(Get_UUID_UDSStatus() == 1)
{
PackedTransfer_LabelsList( 0x4014,(uint8_t *)UUIDDisplay, 42);
SetPageText(GRAPHICS_PAGE_0, 0x4014, 486, 248, 800, ALIGN_LEFT, 200, TEXT_COLOR(0,0,0,0XFF),TEXT_LINE_OFFSET(1,1));
}
else
{
;
}
}
if(g_u8Display_Mode == ModeNIGHT)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);
......@@ -5183,9 +5189,16 @@ void AMT630H_GUI_Display_Navigation_Area(void)
SetPagePic(GRAPHICS_PAGE_0, Pic_1032_655_197);
SetPagePic(GRAPHICS_PAGE_0, Pic_1033_410_197);
SetPagePic(GRAPHICS_PAGE_0, Pic_1035_411_252); /*UUID*/
if(Get_UUID_UDSStatus() == 1)
{
PackedTransfer_LabelsList( 0x4014,(uint8_t *)UUIDDisplay, 42);
SetPageText(GRAPHICS_PAGE_0, 0x4014, 486, 248, 800, ALIGN_LEFT, 200, TEXT_COLOR(0XFF,0XFF,0XFF,0XFF),TEXT_LINE_OFFSET(1,1));
}
else
{
;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment