From 27c2743c8771dbf3700c8f56c06e7a8ca452d653 Mon Sep 17 00:00:00 2001 From: kyz Date: Wed, 10 Apr 2024 19:30:26 +0800 Subject: [PATCH] V2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 10A内电流上报平台值修改为0 --- user/ht1622.c | 19 +++++++++---------- user/user.h | 2 +- user/user_report.c | 4 ++++ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/user/ht1622.c b/user/ht1622.c index 9f5bd78..3931ae3 100644 --- a/user/ht1622.c +++ b/user/ht1622.c @@ -277,14 +277,16 @@ typedef struct{ }disp_data_t; /* -//LCD 显示逻辑 +//LCD 显示和按键操作逻辑 1.上电后开机自检 开机LCD全亮1秒 LCD全灭1秒。 -2. 开机进入工作模式,各个字段根据设备状态显示, 工作模式灯亮, 设置模式灯灭 + +2. 自检完成自动进入工作模式,各个字段根据设备状态显示, 工作模式灯亮, 设置模式灯灭 + 3. 进入设置模式 - 长按menu 1秒 进入设置模式待解锁, “设置”常亮。 - 按 上上下下上下上下解锁, 解锁成功 “设置”灯1Hz闪烁。 解锁输入错误,推出设置 + 工作模式下,长按menu 1秒 进入设置模式待解锁, “设置”常亮。 + 按 上上下下上下上下解锁, 解锁成功 “设置”灯1Hz闪烁。 解锁输入错误,退出设置 4. 退出设置模式 长按menu 1秒 退出设置模式, “设置”灯灭,工作灯常亮。 @@ -292,12 +294,9 @@ typedef struct{ 检测到有效焊接电流,自动退出设置模式 5. 设置模式下参数设置 - 工艺 节气因子 前气调节 气路选择 四项短按按menu循环选择, 选中项 1hz闪烁 + 工艺 节气因子 前气调节 三个参数项,通过短按menu 循环选择, 选中项 1hz闪烁 选中 焊接工艺后, 短按+/-键 在 TIG MIG MAG 中切换,选中的工艺1Hz闪烁,未选中的关闭。 - 选中 节气因子, 数字闪烁, 短按+/-调节, 长按+/-快速调节。 - 选中 前后气开度, 数字闪烁, 短按+/-加减调节, 长按+/-快速调节。 - - - + 选中 节气因子, 数字1Hz闪烁, 短按+/-调节, 长按+/-快速调节。 + 选中 前后气开度, 数字1Hz闪烁, 短按+/-加减调节, 长按+/-快速调节。 */ #endif diff --git a/user/user.h b/user/user.h index 6236fd5..940af71 100644 --- a/user/user.h +++ b/user/user.h @@ -26,7 +26,7 @@ //-------------------- #define APP_VER_MAJOR 2 -#define APP_VER_MINOR 3 +#define APP_VER_MINOR 4 #define VREF 2.5f diff --git a/user/user_report.c b/user/user_report.c index c9e21d2..e3d54f6 100644 --- a/user/user_report.c +++ b/user/user_report.c @@ -41,6 +41,10 @@ char * devinfo_report_str( void ) c = g_dev.welding_current; g = g_dev.flowmeter.flow_speed; s = g_dev.welding_start; + + //+10A 到 -10A 上报0,与屏上显示一致 + if( c<10.0f && c>-10.0f ) + c = 0.0f; sprintf( (char*)tx_buf, fmt, cid++, APP_VER_MAJOR, APP_VER_MINOR, g_dev.remote_locked, g_mac_str, c, s, g ); return tx_buf; -- 2.34.1