修正M3指令重启MCU后回包错误。

This commit is contained in:
yelvlab 2025-06-01 10:18:29 +08:00
parent 742ede30d4
commit 1b65f75da7

View File

@ -93,7 +93,7 @@ void process_command(uint8_t *cmd, size_t length) {
} else if (strcmp(combined_str, "M2") == 0) { } else if (strcmp(combined_str, "M2") == 0) {
g_statusSwitch = false; g_statusSwitch = false;
} else if (strcmp(combined_str, "M3") == 0) { } else if (strcmp(combined_str, "M3") == 0) {
printf("%c%c%c%c%c%c", 0xB5, 0xF1, 0x02, 0x6F, 0x6B, 0xCC); printf("%c%c%c%c%c%c", 0xB5, 0xF0, 0x02, 0x6F, 0x6B, 0xCC);
fwdgt_reset_mcu(); fwdgt_reset_mcu();
} else { } else {
printf("%c%c%c%c%c%c%c", 0xB5, 0xF0, 0x03, 0x65, 0x72, 0x72, 0x3C); printf("%c%c%c%c%c%c%c", 0xB5, 0xF0, 0x03, 0x65, 0x72, 0x72, 0x3C);