Explorar el Código

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

Cody Tolene hace 2 años
padre
commit
8f09dcad61
Se han modificado 1 ficheros con 7 adiciones y 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
 )