From 0ec267adfedfc42ebbf2bd0384c1db22c61f4483 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 13 五月 2021 15:19:45 +0800 Subject: [PATCH] 修改0C数据不输出BUG --- 源码/核心板/Src/main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" index 9e0215c..65bed40 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" @@ -94,7 +94,7 @@ #endif OUT485_ENABLE; ComMapCheck(); - g_com_map[VERSION] = 0x0211; + g_com_map[VERSION] = 0x0217; dev_id = g_com_map[DEV_ID]; slottime=ceil((double)g_com_map[MAX_REPORT_ANC_NUM]*SLOT_SCALE)+3; max_slotpos=g_com_map[COM_INTERVAL]/slottime; @@ -123,7 +123,7 @@ for(i=0;i<255;i++) { - g_Tagdist[i]=0xffff; + g_Tagdist[i]=0x1ffff; } } @@ -143,7 +143,7 @@ void HeatBeat(void) { u16 checksum; GetPressAndHeight(); - intheight = Height*100+g_com_map[MAX_REPORT_ANC_NUM]; + intheight = Height*100;//+g_com_map[MAX_REPORT_ANC_NUM]; if(synclost_count>5) { hbsend[6] = 0; -- Gitblit v1.9.3