支持单英文版本,启用后将关闭语言切换功能
authorkyz <kongyuzhong@google.com>
Thu, 5 Feb 2026 06:56:41 +0000 (14:56 +0800)
committerkyz <kongyuzhong@google.com>
Wed, 11 Feb 2026 06:14:12 +0000 (14:14 +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 bb9402112de59a820c2e1772916bd0f06efa3343..5aa7fb3240aadab4b76531b71f3541612ae1d44d 100644 (file)
@@ -425,6 +425,11 @@ void displayInRangeValues()
                        RateData.RateNum = 0;
                }
     }
+
+#if ENGLISH_VERSION_ONLY
+       SetData.Languages = 0; //Ç¿ÖÆÉ趨ΪӢÎİæ
+#endif
+
 }
 
 
index 488b00da934297e9fda0af258a313013f0eda150..9007cba5ac05e0a9f397bee8e5f8f305e91ef419 100644 (file)
@@ -1098,6 +1098,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;        // ½Ç¶È¶ÔӦȦÊý