Browse Source

Add EN_ONLY support for MK404

3d-gussner 3 years ago
parent
commit
2195116beb
1 changed files with 8 additions and 1 deletions
  1. 8 1
      PF-build.sh

+ 8 - 1
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