diff --git a/flashing/flash_portapack_mayhem.bat b/flashing/flash_portapack_mayhem.bat index a02e7e6df..bdb4304a0 100644 --- a/flashing/flash_portapack_mayhem.bat +++ b/flashing/flash_portapack_mayhem.bat @@ -10,6 +10,17 @@ echo. pause echo. + +REM Check if the firmware file exists +if not exist portapack-h1_h2-mayhem.bin ( + echo The firmware file "portapack-h1_h2-mayhem.bin" does not exist. + echo Please ensure that you have downloaded the latest release from: + echo https://github.com/eried/portapack-mayhem/releases/ + echo. + pause + exit /b +) + hackrf_update.exe portapack-h1_h2-mayhem.bin echo. echo If your device never boot after flashing, please refer to https://github.com/eried/portapack-mayhem/wiki/Won't-boot