projects
/
yn
/
weldingcontroller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a527870
)
v5.7
branch_v5
author
kyz
<kongyuzhong@google.com>
Thu, 28 Aug 2025 00:58:03 +0000
(08:58 +0800)
committer
kyz
<kongyuzhong@google.com>
Thu, 28 Aug 2025 00:58:03 +0000
(08:58 +0800)
user/user.h
patch
|
blob
|
history
user/user_app.c
patch
|
blob
|
history
diff --git
a/user/user.h
b/user/user.h
index 8eac30d1efc766d4f57f0195f59ad24aaf7d44e9..fbe5b4018eb12956cb359affe09410d1f6adacb7 100644
(file)
--- a/
user/user.h
+++ b/
user/user.h
@@
-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
diff --git
a/user/user_app.c
b/user/user_app.c
index 52b0d26ce287f2792e5c5fbd8b52a85898578a74..e403cb95a03edda8539e00b142a865e56d19dc9b 100644
(file)
--- a/
user/user_app.c
+++ b/
user/user_app.c
@@
-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;
}