@@ -194,6 +194,10 @@ uint32_t DC_I_calfunction(uint16_t da,uint8_t channel)
case 5:
{
temp_v = da;
+ if(da < 0xA)
+ {
+ temp_v = 0;
+ }
temp_v *= ADC_Vref;
temp_v *= 1000;
temp_v = temp_v >> 12;
@@ -201,8 +205,8 @@ uint32_t DC_I_calfunction(uint16_t da,uint8_t channel)
temp_i = temp_v;
temp_i /= 10;//去掉第3位小数
temp_i *= 10;
- temp_i += 200;
- if(temp_i <= 220)
+ //temp_i += 200;
+ if(temp_i <= 80)
temp_i = 0;
}
break;
@@ -18,7 +18,7 @@
#define PROGRAME_APP1_SIZE (48*1024) //App1 programe Max size
-#define VERSION "V1.0.0.9"
+#define VERSION "V1.0.0.0"
#define MODBUS_HEAD "GOWONE_UPGRADE"