Add EN_ONLY support for MK404

This commit is contained in:
3d-gussner 2021-05-01 01:30:03 +02:00
parent 6ba8999607
commit 2195116beb

View File

@ -1015,8 +1015,15 @@ if [ ! -z "$mk404_flag" ]; then
dd if=$SCRIPT_PATH/../$OUTPUT_FOLDER/FW$FW-Build$BUILD-$VARIANT-lang.bin of=Prusa_${PRINTER}_xflash.bin conv=notrunc
fi
#Decide which hex file to use EN_ONLY or Multi language
if [ "$LANGUAGES" == "ALL" ]; then
MK404_firmware_file=$SCRIPT_PATH/../$OUTPUT_FOLDER/FW$FW-Build$BUILD-$VARIANT.hex
else
MK404_firmware_file=$SCRIPT_PATH/../$OUTPUT_FOLDER/FW$FW-Build$BUILD-$VARIANT-EN_ONLY.hex
fi
# Start MK404
# default with serial output and terminal to manipulate it via terminal
./MK404 Prusa_$PRINTER -s --terminal $MK404_options -f $SCRIPT_PATH/../$OUTPUT_FOLDER/FW$FW-Build$BUILD-$VARIANT.hex
./MK404 Prusa_$PRINTER -s --terminal $MK404_options -f $MK404_firmware_file
fi
#### End of MK404 Simulator