From 2d43068c500d6420b0864eebfcfcdd0943c5738c Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期三, 02 四月 2025 18:08:01 +0800
Subject: [PATCH] 修改PA驱动代码,成功驱动pa并且修复串口读取bug

---
 keil/dw_app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/keil/dw_app.c b/keil/dw_app.c
index b7dda3b..45c2966 100644
--- a/keil/dw_app.c
+++ b/keil/dw_app.c
@@ -128,7 +128,7 @@
 			
 			 if(distance>-1000&&distance<100000)
           {
-            taglist_dist[i+taglist_current_index]  = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未加
+            taglist_dist[i+taglist_current_index]  = distance+(int16_t)g_com_map[DIST_OFFSET];//offset未加
           }else{
 						taglist_dist[i] = 0x2ffff;
 					}

--
Gitblit v1.9.3