From 7e864f1d0b26f0e5dd4c073f8fe764eb286fe961 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 06 五月 2021 12:59:59 +0800 Subject: [PATCH] 回退V1.41 无滤波 --- 源码/核心板/Src/application/serial_at_cmd_app.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.c" index 78f6044..c81b079 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.c" @@ -35,11 +35,12 @@ send_frame[3] = 8; send_frame[4] = pack_msgtype; send_frame[5] = pack_length; - +OUT485_ENABLE; checksum = Checksum_u16(&send_frame[2],8); memcpy(&send_frame[10],&checksum,2); USART_puts(send_frame, 12); + OUT485_DISABLE; } void SendComMap(uint8_t data_length, uint8_t index) { @@ -99,7 +100,7 @@ //SendComMap(pack_datalen,pack_index); save_com_map_to_flash(); SendConfigConfirm(pack_msgtype,pack_length); - delay_ms(10); + delay_ms(500); SCB->AIRCR = 0X05FA0000|(unsigned int)0x04; //软复位回到bootloader break; case CMD_READ: -- Gitblit v1.9.3