mirror of
https://github.com/LIV2/pistorm.git
synced 2025-12-05 22:52:44 +00:00
Fix CPLD detection sometimes failing
CPLD detection would sometimes fail if emulator was running, so fail with a message to stop the emulator _before_ detection. The emulator check will remain in nprog too for those who run that directly.
This commit is contained in:
parent
10689c6c24
commit
2b1daffb81
5
flash.sh
5
flash.sh
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if pgrep -x "emulator" > /dev/null
|
||||
then
|
||||
echo "PiStorm emulator is running, please stop it first"
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
echo "openocd is not installed, please run \"sudo apt install openocd\""
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
if pgrep -x "emulator" > /dev/null
|
||||
then
|
||||
echo "PiStorm emulator is running, please stop it first"
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v openocd &> /dev/null
|
||||
then
|
||||
echo "openocd is not installed, please run \"sudo apt install openocd\""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user