From 2195116bebdddedbe07c6552726dcf83dd9ce63d Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Sat, 1 May 2021 01:30:03 +0200 Subject: [PATCH] Add EN_ONLY support for MK404 --- PF-build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PF-build.sh b/PF-build.sh index de10ea4b..1db0bc04 100755 --- a/PF-build.sh +++ b/PF-build.sh @@ -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