v5.7 branch_v5
authorkyz <kongyuzhong@google.com>
Thu, 28 Aug 2025 00:58:03 +0000 (08:58 +0800)
committerkyz <kongyuzhong@google.com>
Thu, 28 Aug 2025 00:58:03 +0000 (08:58 +0800)
user/user.h
user/user_app.c

index 8eac30d1efc766d4f57f0195f59ad24aaf7d44e9..fbe5b4018eb12956cb359affe09410d1f6adacb7 100644 (file)
@@ -27,7 +27,7 @@
 //#include "fmc.h"
 //--------------------
 #define APP_VER_MAJOR 5
-#define APP_VER_MINOR 6
+#define APP_VER_MINOR 7
 
 #define HW_V2  2
 #define HW_V3  3
index 52b0d26ce287f2792e5c5fbd8b52a85898578a74..e403cb95a03edda8539e00b142a865e56d19dc9b 100644 (file)
@@ -670,6 +670,11 @@ float welding_curr_disp_value( float curr )
 { //+10A 到 -10A 上报0,与屏上显示一致
        if( curr > -WELDING_START_CURRENT && curr < WELDING_START_CURRENT )
                curr = 0;
+
+       //直接修改成绝对值,用于显示和上报平台, 2025/8/20
+       if( curr < 0 )
+               curr = -curr;
+
        return curr;
 }