Refactor console output during compilation
This commit is contained in:
parent
bebf6fa55e
commit
d9a2cbd26f
|
@ -260,15 +260,15 @@ then
|
||||||
then
|
then
|
||||||
outputName="$(realpath "$projectRoot/$buildPath/$outputName")";
|
outputName="$(realpath "$projectRoot/$buildPath/$outputName")";
|
||||||
outputFile="$outputName.axf";
|
outputFile="$outputName.axf";
|
||||||
echo "The File Has Been Built to \"$outputFile\".";
|
echo "Target Built: \"$outputFile\".";
|
||||||
pyocd list | {
|
pyocd list | {
|
||||||
grep '^No available' &&
|
grep '^No available' &&
|
||||||
{
|
{
|
||||||
echo "Skpping flash."
|
echo "Skpping Flash."
|
||||||
} ||
|
} ||
|
||||||
{
|
{
|
||||||
pyocd flash --target stm32f439xi "$outputFile";
|
pyocd flash --target stm32f439xi "$outputFile";
|
||||||
handle_status $? "Flashing failed";
|
handle_status $? "Flashing Failed";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue