Explorar o código

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

Cody Tolene %!s(int64=2) %!d(string=hai) anos
pai
achega
8f09dcad61
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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
 )