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:
ef82cbf
)
修正负焊接电流有效判断
author
kyz
<kongyuzhong@google.com>
Fri, 2 Aug 2024 09:58:17 +0000
(17:58 +0800)
committer
kyz
<kongyuzhong@google.com>
Fri, 2 Aug 2024 09:58:17 +0000
(17:58 +0800)
user/user_adc.c
patch
|
blob
|
history
diff --git
a/user/user_adc.c
b/user/user_adc.c
index e8284d0d58a373bd55afc344f467a4a7945d2ee6..c40a7a97a24426735c386416f734fd3e6ac8e643 100644
(file)
--- a/
user/user_adc.c
+++ b/
user/user_adc.c
@@
-241,7
+241,7
@@
float vol_to_curr( float vol )
int32_t is_curr_valid( float curr )
{
uint8_t sensor;
-
u
int32_t curr_max;
+ int32_t curr_max;
if( g_dev.cfg2.curr_sensor== CURR_SENSOR_600A_625 ){
curr_max = 600;
@@
-249,7
+249,7
@@
int32_t is_curr_valid( float curr )
curr_max = 400;
}
- if( curr > - curr && curr < curr_max+100 ){
+ if( curr > - curr
_max
&& curr < curr_max+100 ){
return 1;
}else{
return 0;