From: kyz Date: Fri, 7 Feb 2025 03:27:21 +0000 (+0800) Subject: V5.1 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=2c23e74eaa7321c796d20f9df62f8a68205a18c2;p=yn%2Fweldingcontroller.git V5.1 --- diff --git a/user/ht1622.c b/user/ht1622.c index 00d5a64..90286ed 100644 --- a/user/ht1622.c +++ b/user/ht1622.c @@ -639,7 +639,7 @@ void disp_curr( float curr ) if( g_dev.state & CURR_SENSOR_ERR ) disp_str( (disp_item_t*)&lcd_curr, "Err", DISP_ON ); else if( curr < 400 && curr > -400 ) - disp_float_x10( (disp_item_t*)&lcd_curr, curr, DISP_ON ); + disp_float_x10( (disp_item_t*)&lcd_curr, curr, DISP_ON ); else disp_str( (disp_item_t*)&lcd_curr, "---", DISP_ON ); } @@ -649,7 +649,7 @@ void disp_flow( float flow ) if( g_dev.state & FLOWMETER_ERR ) disp_str( (disp_item_t*)&lcd_flow, "Err", DISP_ON ); else - disp_float_x10( (disp_item_t*)&lcd_flow, flow, DISP_ON ); + disp_float_x10( (disp_item_t*)&lcd_flow, flow, DISP_ON ); } void disp_pressure( float pressure ) @@ -657,7 +657,7 @@ void disp_pressure( float pressure ) if( g_dev.state & PRESSURE_SENSOR_ERR ) disp_str( (disp_item_t*)&lcd_pressure, "Err", DISP_ON ); else - disp_float_x10( (disp_item_t*)&lcd_pressure, pressure, DISP_ON ); + disp_float_x10( (disp_item_t*)&lcd_pressure, pressure, DISP_ON ); } void disp_total( uint32_t total ) diff --git a/user/user.h b/user/user.h index ee24e73..d968845 100644 --- a/user/user.h +++ b/user/user.h @@ -27,7 +27,7 @@ //#include "fmc.h" //-------------------- #define APP_VER_MAJOR 5 -#define APP_VER_MINOR 0 +#define APP_VER_MINOR 1 #define HW_V2 2 #define HW_V3 3 diff --git a/user/user_valve_ctrl.c b/user/user_valve_ctrl.c index 7012159..898a271 100644 --- a/user/user_valve_ctrl.c +++ b/user/user_valve_ctrl.c @@ -651,11 +651,9 @@ void user_valve_ctrl_task( void* unused ) flow_rate_check(); } } - + //LED报警灯 - HAL_GPIO_WritePin( PB3_LEDG_GPIO_Port, PB3_LEDG_Pin, (now%1000)<500?GPIO_PIN_SET:GPIO_PIN_RESET ); if( g_dev.state == 0 ){ - HAL_GPIO_WritePin( PB3_LEDG_GPIO_Port, PB3_LEDG_Pin, (now%1000)<500?GPIO_PIN_SET:GPIO_PIN_RESET ); HAL_GPIO_WritePin( PB3_LEDR_GPIO_Port, PB3_LEDR_Pin, GPIO_PIN_RESET ); }else{