Commit 55a6c075 authored by hu's avatar hu

调整按键AD采集数值,调整胎温显示图片

parent 8372dd31
...@@ -1007,7 +1007,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Up(void) ...@@ -1007,7 +1007,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Up(void)
} }
else else
{ {
if ((Key_R >= (1200 - 400)) && (Key_R <= (1200 + 400))) if ((Key_R >= (1200 - 300)) && (Key_R <= (1200 + 300)))
{ {
enKeyRealStatus = KEY_LINE_PRESS; enKeyRealStatus = KEY_LINE_PRESS;
} }
...@@ -1034,7 +1034,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Down(void) ...@@ -1034,7 +1034,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Down(void)
} }
else else
{ {
if ((Key_R >= (2700 - 400)) && (Key_R <= (2700 + 400))) if ((Key_R >= (2500 - 300)) && (Key_R <= (2500 + 300)))
{ {
enKeyRealStatus = KEY_LINE_PRESS; enKeyRealStatus = KEY_LINE_PRESS;
} }
...@@ -1061,7 +1061,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Enter(void) ...@@ -1061,7 +1061,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Enter(void)
} }
else else
{ {
if ((Key_R >= (4800 - 400)) && (Key_R <= (5000 + 400))) if ((Key_R >= (4300 - 400)) && (Key_R <= (4300 + 400)))
{ {
enKeyRealStatus = KEY_LINE_PRESS; enKeyRealStatus = KEY_LINE_PRESS;
} }
...@@ -1087,7 +1087,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Return(void) ...@@ -1087,7 +1087,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Return(void)
} }
else else
{ {
if ((Key_R >= (8000 - 400)) && (Key_R <= (8000 + 400))) if ((Key_R >= (7000 - 400)) && (Key_R <= (7000 + 400)))
{ {
enKeyRealStatus = KEY_LINE_PRESS; enKeyRealStatus = KEY_LINE_PRESS;
} }
...@@ -1114,7 +1114,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Menu(void) ...@@ -1114,7 +1114,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Menu(void)
} }
else else
{ {
if ((Key_R >= (550 - 300)) && (Key_R <= (550 + 300))) if ((Key_R >= (400 - 300)) && (Key_R <= (400 + 300)))
{ {
enKeyRealStatus = KEY_LINE_PRESS; enKeyRealStatus = KEY_LINE_PRESS;
} }
...@@ -1129,7 +1129,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Menu(void) ...@@ -1129,7 +1129,7 @@ Key_Real_Status_en_t Key_Real_Status_Read_Menu(void)
/*---------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------*/
const Key_Attribute_st_t stKeyAttribute[KEY_NUM_MAX] = const Key_Attribute_st_t stKeyAttribute[KEY_NUM_MAX] =
{ {
{KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Up, Key_Operation_Up}, {KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Up, Key_Operation_Up},
{KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Down, Key_Operation_Down}, {KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Down, Key_Operation_Down},
{KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Enter, Key_Operation_Enter}, {KEY_NEED_DEBOUNCE_NORMAL, Key_Real_Status_Read_Enter, Key_Operation_Enter},
......
This diff is collapsed.
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