generated from hulk/gd32e23x_template
有问题
This commit is contained in:
parent
fa7f364bdb
commit
15730d7234
@ -147,5 +147,6 @@ void USART0_IRQHandler(void) {
|
|||||||
// printf("%c%c%c%c", 0xB5, 0xF2, 0x00, 0xF2);
|
// printf("%c%c%c%c", 0xB5, 0xF2, 0x00, 0xF2);
|
||||||
// // fflush(stdout);
|
// // fflush(stdout);
|
||||||
// }
|
// }
|
||||||
|
rx_index = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ void rs485_config(void) {
|
|||||||
void process_command(uint8_t *cmd, size_t length) {
|
void process_command(uint8_t *cmd, size_t length) {
|
||||||
char combined_str[3];
|
char combined_str[3];
|
||||||
|
|
||||||
// printf("%d", length);
|
printf("%d", length);
|
||||||
|
|
||||||
// validate_package_crc(cmd, length);
|
// validate_package_crc(cmd, length);
|
||||||
// if (calculate_crc(cmd, length - 1) != cmd[length - 1]) {
|
// if (calculate_crc(cmd, length - 1) != cmd[length - 1]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user