USART almost working (but hangs on long messages)

This commit is contained in:
Edward Emelianov
2026-03-14 01:16:00 +03:00
parent 14f544374a
commit 65c9ae34bc
12 changed files with 162 additions and 96 deletions

View File

@@ -387,8 +387,10 @@ static void CommandParser(char *txt){
break;
#ifdef STM32F072xB
case 'D':
USB_sendstr("Go into DFU mode\n");
USB_sendall();
SEND("Go into DFU mode\n");
USB_sendall(ICAN);
uint32_t t = Tms;
while(Tms - t < 2000){IWDG->KR = IWDG_REFRESH;}
Jump2Boot();
break;
#endif