@@ -297,6 +297,11 @@ void Main_Cycle(void)
Interface_PutString("\r\n\r\nS to start\r\n\r\n");
while(1)
{
+ if(hcdc->RxLength > 1024){
+ uint8_t t[1] = {0};
+ Interface_Receive(t, 1, 10);
+ continue;
+ }
if(1)
if(Interface_Receive(sKey, 2, IAP_S_TIME) == HAL_OK)
@@ -47,7 +47,7 @@
#ifndef IAP_S_TIME
#define IAP_S_TIME RX_TIMEOUT
-//#define IAP_S_TIME 1000
+// #define IAP_S_TIME 1000
#endif
#ifndef IAP_3_TIME
#define IAP_3_TIME 5000