有问题

This commit is contained in:
yelvlab 2024-12-25 08:48:17 +08:00
parent fa7f364bdb
commit 15730d7234
2 changed files with 2 additions and 1 deletions

View File

@ -147,5 +147,6 @@ void USART0_IRQHandler(void) {
// printf("%c%c%c%c", 0xB5, 0xF2, 0x00, 0xF2);
// // fflush(stdout);
// }
rx_index = 0;
}
}

View File

@ -42,7 +42,7 @@ void rs485_config(void) {
void process_command(uint8_t *cmd, size_t length) {
char combined_str[3];
// printf("%d", length);
printf("%d", length);
// validate_package_crc(cmd, length);
// if (calculate_crc(cmd, length - 1) != cmd[length - 1]) {