Fixed some bugs and added the creation of order files after the order is completed

This commit is contained in:
小冯Sir 2024-05-04 17:48:32 +08:00
parent 6743c0a6ed
commit fdeaf46e9d

View File

@ -69,6 +69,12 @@ void user_Menu() {
} }
if (beginFlag == 3) { if (beginFlag == 3) {
HAL_TIM_Base_Stop_IT(&htim4); HAL_TIM_Base_Stop_IT(&htim4);
uint8_t ret = createOrderFile();
if(ret == 1){
printf("create order successful\r\n");
}else{
printf("Create order fail\r\n");
}
LED_BLUE_OFF; LED_BLUE_OFF;
beginFlag = 0; beginFlag = 0;
} }