فهرست منبع

Update firmware flash bat to ask for redo on failed builds.

Cody Tolene 2 سال پیش
والد
کامیت
8f09dcad61
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      firmware-flash.bat

+ 7 - 1
firware-flash.bat → firmware-flash.bat

@@ -165,7 +165,13 @@ if %ERRORLEVEL% EQU 0 (
     echo Firmware compiled successfully.
     type nul > %COMPILE_FLAG%
 ) else (
-    echo Firmware failed to compile. Please see the error log and try again.
+    echo.
+    set /p TRY_COMPILE_AGAIN="Firmware failed to compile. Please see the error log above. Try again? (Y/N): "
+    echo.
+    if /i "!TRY_COMPILE_AGAIN!"=="Y" (
+        goto :compileFirmware
+    )
+    pause
     exit /b
 )