V5.1
authorkyz <kongyuzhong@google.com>
Fri, 7 Feb 2025 03:27:21 +0000 (11:27 +0800)
committerkyz <kongyuzhong@google.com>
Fri, 7 Feb 2025 04:20:16 +0000 (12:20 +0800)
user/ht1622.c
user/user.h
user/user_valve_ctrl.c

index 00d5a64753e1e1ff360967e51c619c2d2035b39d..90286ed376f5dcb7930ac14b433ba7e0461e562a 100644 (file)
@@ -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 )
index ee24e73fb4d3d57aff45ea677f4a69198cedab21..d968845efe1b36f6dd06112f63393a139651cd92 100644 (file)
@@ -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
index 7012159a57d90d49b427114a935a83476b384903..898a271c591ce1a872d76a28ef14643cc0d2178d 100644 (file)
@@ -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{