支持单英文版本,启用后将关闭语言切换功能
authorkyz <kongyuzhong@google.com>
Thu, 5 Feb 2026 06:56:41 +0000 (14:56 +0800)
committerkyz <kongyuzhong@google.com>
Wed, 11 Feb 2026 06:18:25 +0000 (14:18 +0800)
20240801完整版/扳手下位机软件/cpbs-202103-20240423/APP/Buttonmenu.c
20240801完整版/扳手下位机软件/cpbs-202103-20240423/APP/datastore.c
20240801完整版/扳手下位机软件/cpbs-202103-20240423/APP/uishow.c
20240801完整版/扳手下位机软件/cpbs-202103-20240423/APP/uishow.h

index 7961394f13a25ae9f71f973c3333efcc203fc725..849e1d0704e1369170d036a52ad7e3e1b8a530f2 100644 (file)
@@ -201,6 +201,30 @@ void Set_Meun(u8 displayID, u8 Key_Scan_State)
             SetData.mode = 5;
             switch(Key_Scan_State)
             {
+#if ENGLISH_VERSION_ONLY
+                case KEY1_PRES:
+                case KEY1_Long_PRES:
+                    if(Interface.CursorPosition <= CURSOR_INITIAL)
+                        Interface.CursorPosition = SETTING_CURSOR_END;
+                    else
+                        Interface.CursorPosition--;
+                    //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£
+                    if(Interface.CursorPosition == CURSOR_INITIAL)
+                        Interface.CursorPosition = SETTING_CURSOR_END;
+                    delay_ms(300);
+                    break;
+                case KEY2_PRES:
+                case KEY2_Long_PRES:
+                    if(Interface.CursorPosition >= SETTING_CURSOR_END)
+                        Interface.CursorPosition = CURSOR_INITIAL;
+                    else
+                        Interface.CursorPosition++;
+                    //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£
+                    if(Interface.CursorPosition == CURSOR_INITIAL)
+                        Interface.CursorPosition++;
+                    delay_ms(300);
+                    break;
+#else
                 case KEY1_PRES:
                     if(Interface.CursorPosition <= CURSOR_INITIAL) 
                     Interface.CursorPosition = SETTING_CURSOR_END;
@@ -225,6 +249,7 @@ void Set_Meun(u8 displayID, u8 Key_Scan_State)
                     else Interface.CursorPosition++;
                     delay_ms(300);
                     break;
+#endif
                 case KEY3_Long_PRES:
                     Interface.CursorPosition = 0;
                     SetData.InterfaceID = TORQUE_ANGLE_INTERFACE_ID;
index 816d18efe7d18c5ac02b747888e1726acd449cde..54f3428731ccd6f7b877b39f5b8525d89b1538ba 100644 (file)
@@ -394,6 +394,11 @@ void displayInRangeValues()
                        RateData.RateNum = 0;
                }
     }
+
+#if ENGLISH_VERSION_ONLY
+       SetData.Languages = 0; //Ç¿ÖÆÉ趨ΪӢÎİæ
+#endif
+
 }
 
 
index 1db12205ee567283b034b5671fae8f041dbe3232..93ee2f99e54abe35ab6fe1633061ec7485cd4b5b 100644 (file)
@@ -1060,6 +1060,11 @@ void Setting_Interface(SetParameter_t* pdata,_calendar_obj* Time,InterfaceState_
     static u32 LastUsageCounter =0;
     static u8 LastCurPos = 0;
     static u8 LastSelectState = 0;
+
+#if ENGLISH_VERSION_ONLY
+    pdata->Languages = 0; //Ó¢Îİæ
+#endif  // ENGLISH_VERSION_ONLY
+
     //±äÁ¿¸³Öµ
     p_UsageCounter = pdata->UsageCounter;
     p_Standard = pdata->Standard;
index 891abdfd6dd3814c2ffe299687dc6e50de04c429..bfeedc0e4267fc45d1f0ec438c40a7bedc03a949 100644 (file)
@@ -14,6 +14,8 @@
 //½Ç¶ÈϵÊý   »ù´¡Ò»È¦/¶ÔÓ¦Âö³åÊý   360 / 23 = 15  Ò²¾ÍÊÇ15¡ãµÈÓÚÒ»¸öÂö³å
 #define COEFFICIENT (360 / 23) 
 
+#define  ENGLISH_VERSION_ONLY   0   //ÊÇ·ñÖ»ÏÔʾӢÎİ汾
+
 extern u32 Corresponding_A;        // Å¤Á¦¶ÔÓ¦µçÁ÷
 extern u32 Angle_Number;        // ½Ç¶È¶ÔӦȦÊý