From f018800c5cddf3a3fc70a8b319c4e5dd94a3190f Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期日, 24 十一月 2019 16:43:47 +0800 Subject: [PATCH] 修改跳数40米bug --- 源码/核心板/Src/application/modbus.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/modbus.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/modbus.h" index 19214d5..13a5884 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/modbus.h" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/modbus.h" @@ -2,7 +2,7 @@ #define _MODBUS_H //#include "sys.h" #include "stm32f10x.h" - +#include "Usart.h" //#define RS485_TX_EN PDout(7) #define RS485_TX_PIN GPIO_Pin_7 @@ -12,7 +12,7 @@ #define MODBUS_SIZE 200 -#define WAITDELAYCOUNT 500 //剩余1位数据等待次数 +#define WAITDELAYCOUNT 1500 //剩余1位数据等待次数 extern u8 cmd_mode; extern u8 RS485_Addr; extern u8 RS485_RX_BUFF[200]; -- Gitblit v1.9.3