Pārlūkot izejas kodu

Fix binary protocol with one serial port (#13270)

- The `sdcard.transfer_port` variable is Marlin's internal serial port index, not the physical serial port number.
- Added packet number to "ok" response so hosts don't need to wait for the ACK.
- Renamed feature to `BINARY_FILE_TRANSFER`, as the speed up is only consequential to the ability to transfer binaries over serial.
Chris Pepper 6 gadus atpakaļ
vecāks
revīzija
4ab433d391
78 mainītis faili ar 124 papildinājumiem un 121 dzēšanām
  1. 1
    1
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/src/config/default/Configuration_adv.h
  3. 1
    1
      Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  4. 1
    1
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 1
    1
      Marlin/src/config/examples/Anet/A2/Configuration_adv.h
  6. 1
    1
      Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
  7. 1
    1
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  8. 1
    1
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  9. 1
    1
      Marlin/src/config/examples/AnyCubic/i3/Configuration_adv.h
  10. 1
    1
      Marlin/src/config/examples/ArmEd/Configuration_adv.h
  11. 1
    1
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  12. 1
    1
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  13. 1
    1
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  14. 1
    1
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  15. 1
    1
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  16. 1
    1
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  17. 1
    1
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  18. 1
    1
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  19. 1
    1
      Marlin/src/config/examples/Creality/CR-10_5S/Configuration_adv.h
  20. 1
    1
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  21. 1
    1
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  22. 1
    1
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  23. 1
    1
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  24. 1
    1
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  25. 1
    1
      Marlin/src/config/examples/Einstart-S/Configuration_adv.h
  26. 1
    1
      Marlin/src/config/examples/Felix/Configuration_adv.h
  27. 1
    1
      Marlin/src/config/examples/FlashForge/CreatorPro/Configuration_adv.h
  28. 1
    1
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  29. 1
    1
      Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h
  30. 1
    1
      Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  31. 1
    1
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
  32. 1
    1
      Marlin/src/config/examples/Geeetech/A10M/Configuration_adv.h
  33. 1
    1
      Marlin/src/config/examples/Geeetech/A20M/Configuration_adv.h
  34. 1
    1
      Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h
  35. 1
    1
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  36. 1
    1
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  37. 1
    1
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  38. 1
    1
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  39. 1
    1
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  40. 1
    1
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  41. 1
    1
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  42. 1
    1
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  43. 1
    1
      Marlin/src/config/examples/Mks/Robin/Configuration_adv.h
  44. 1
    1
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  45. 1
    1
      Marlin/src/config/examples/RapideLite/RL200/Configuration_adv.h
  46. 1
    1
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  47. 1
    1
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  48. 1
    1
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  49. 1
    1
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  50. 1
    1
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  51. 1
    1
      Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
  52. 1
    1
      Marlin/src/config/examples/UltiMachine/Archim1/Configuration_adv.h
  53. 1
    1
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  54. 1
    1
      Marlin/src/config/examples/VORONDesign/Configuration_adv.h
  55. 1
    1
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  56. 1
    1
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  57. 1
    1
      Marlin/src/config/examples/WASP/PowerWASP/Configuration_adv.h
  58. 1
    1
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  59. 1
    1
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  60. 1
    1
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  61. 1
    1
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  62. 1
    1
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  63. 1
    1
      Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  64. 1
    1
      Marlin/src/config/examples/delta/MKS/SBASE/Configuration_adv.h
  65. 1
    1
      Marlin/src/config/examples/delta/Tevo Little Monster/Configuration_adv.h
  66. 1
    1
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  67. 1
    1
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  68. 1
    1
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  69. 1
    1
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  70. 1
    1
      Marlin/src/config/examples/makibox/Configuration_adv.h
  71. 1
    1
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  72. 1
    1
      Marlin/src/config/examples/wt150/Configuration_adv.h
  73. 7
    0
      Marlin/src/gcode/host/M115.cpp
  74. 39
    43
      Marlin/src/gcode/queue.cpp
  75. 1
    1
      Marlin/src/gcode/sdcard/M20-M30_M32-M34_M524_M928.cpp
  76. 1
    1
      Marlin/src/sd/cardreader.cpp
  77. 3
    3
      Marlin/src/sd/cardreader.h
  78. 1
    1
      buildroot/share/tests/megaatmega2560-tests

+ 1
- 1
Marlin/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/default/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Anet/A2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Anet/A6/Configuration_adv.h Parādīt failu

@@ -834,7 +834,7 @@
834 834
   #endif
835 835
 
836 836
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
837
-  //#define FAST_FILE_TRANSFER
837
+  //#define BINARY_FILE_TRANSFER
838 838
 
839 839
 #endif // SDSUPPORT
840 840
 

+ 1
- 1
Marlin/src/config/examples/Anet/A8/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/AnyCubic/i3/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/ArmEd/Configuration_adv.h Parādīt failu

@@ -839,7 +839,7 @@
839 839
   #endif
840 840
 
841 841
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
842
-  //#define FAST_FILE_TRANSFER
842
+  //#define BINARY_FILE_TRANSFER
843 843
 
844 844
 #endif // SDSUPPORT
845 845
 

+ 1
- 1
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h Parādīt failu

@@ -834,7 +834,7 @@
834 834
   #endif
835 835
 
836 836
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
837
-  //#define FAST_FILE_TRANSFER
837
+  //#define BINARY_FILE_TRANSFER
838 838
 
839 839
 #endif // SDSUPPORT
840 840
 

+ 1
- 1
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h Parādīt failu

@@ -843,7 +843,7 @@
843 843
   #endif
844 844
 
845 845
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
846
-  //#define FAST_FILE_TRANSFER
846
+  //#define BINARY_FILE_TRANSFER
847 847
 
848 848
 #endif // SDSUPPORT
849 849
 

+ 1
- 1
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Cartesio/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10_5S/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Einstart-S/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Felix/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/FlashForge/CreatorPro/Configuration_adv.h Parādīt failu

@@ -834,7 +834,7 @@
834 834
   #endif
835 835
 
836 836
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
837
-  //#define FAST_FILE_TRANSFER
837
+  //#define BINARY_FILE_TRANSFER
838 838
 
839 839
 #endif // SDSUPPORT
840 840
 

+ 1
- 1
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h Parādīt failu

@@ -839,7 +839,7 @@
839 839
   #endif
840 840
 
841 841
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
842
-  //#define FAST_FILE_TRANSFER
842
+  //#define BINARY_FILE_TRANSFER
843 843
 
844 844
 #endif // SDSUPPORT
845 845
 

+ 1
- 1
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h Parādīt failu

@@ -840,7 +840,7 @@
840 840
   #endif
841 841
 
842 842
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
843
-  //#define FAST_FILE_TRANSFER
843
+  //#define BINARY_FILE_TRANSFER
844 844
 
845 845
 #endif // SDSUPPORT
846 846
 

+ 1
- 1
Marlin/src/config/examples/Geeetech/A10M/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Geeetech/A20M/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/MakerParts/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Mks/Robin/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h Parādīt failu

@@ -836,7 +836,7 @@
836 836
   #endif
837 837
 
838 838
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
839
-  //#define FAST_FILE_TRANSFER
839
+  //#define BINARY_FILE_TRANSFER
840 840
 
841 841
 #endif // SDSUPPORT
842 842
 

+ 1
- 1
Marlin/src/config/examples/RapideLite/RL200/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/RigidBot/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/SCARA/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/TheBorg/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/UltiMachine/Archim1/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/VORONDesign/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h Parādīt failu

@@ -848,7 +848,7 @@
848 848
   #endif
849 849
 
850 850
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
851
-  //#define FAST_FILE_TRANSFER
851
+  //#define BINARY_FILE_TRANSFER
852 852
 
853 853
 #endif // SDSUPPORT
854 854
 

+ 1
- 1
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/WASP/PowerWASP/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/MKS/SBASE/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/Tevo Little Monster/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/generic/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h Parādīt failu

@@ -836,7 +836,7 @@
836 836
   #endif
837 837
 
838 838
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
839
-  //#define FAST_FILE_TRANSFER
839
+  //#define BINARY_FILE_TRANSFER
840 840
 
841 841
 #endif // SDSUPPORT
842 842
 

+ 1
- 1
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h Parādīt failu

@@ -837,7 +837,7 @@
837 837
   #endif
838 838
 
839 839
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
840
-  //#define FAST_FILE_TRANSFER
840
+  //#define BINARY_FILE_TRANSFER
841 841
 
842 842
 #endif // SDSUPPORT
843 843
 

+ 1
- 1
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/makibox/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h Parādīt failu

@@ -835,7 +835,7 @@
835 835
   #endif
836 836
 
837 837
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
838
-  //#define FAST_FILE_TRANSFER
838
+  //#define BINARY_FILE_TRANSFER
839 839
 
840 840
 #endif // SDSUPPORT
841 841
 

+ 1
- 1
Marlin/src/config/examples/wt150/Configuration_adv.h Parādīt failu

@@ -836,7 +836,7 @@
836 836
   #endif
837 837
 
838 838
   // Add an optimized binary file transfer mode, initiated with 'M28 B1'
839
-  //#define FAST_FILE_TRANSFER
839
+  //#define BINARY_FILE_TRANSFER
840 840
 
841 841
 #endif // SDSUPPORT
842 842
 

+ 7
- 0
Marlin/src/gcode/host/M115.cpp Parādīt failu

@@ -52,6 +52,13 @@ void GcodeSuite::M115() {
52 52
       #endif
53 53
     );
54 54
 
55
+    // BINARY_FILE_TRANSFER (M28 B1)
56
+    cap_line(PSTR("BINARY_FILE_TRANSFER")
57
+      #if ENABLED(BINARY_FILE_TRANSFER)
58
+        , true
59
+      #endif
60
+    );
61
+
55 62
     // EEPROM (M500, M501)
56 63
     cap_line(PSTR("EEPROM")
57 64
       #if ENABLED(EEPROM_SETTINGS)

+ 39
- 43
Marlin/src/gcode/queue.cpp Parādīt failu

@@ -282,7 +282,7 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
282 282
   serial_count[port] = 0;
283 283
 }
284 284
 
285
-#if ENABLED(FAST_FILE_TRANSFER)
285
+#if ENABLED(BINARY_FILE_TRANSFER)
286 286
 
287 287
   inline bool serial_data_available(const uint8_t index) {
288 288
     switch (index) {
@@ -398,16 +398,12 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
398 398
               stream_state = StreamState::PACKET_RESET;
399 399
               bytes_received = 0;
400 400
               time_stream_start = millis();
401
-              SERIAL_ECHO("echo: Datastream initialized (");
402
-              SERIAL_ECHO(stream_header.filesize);
403
-              SERIAL_ECHOLN("Bytes expected)");
404
-              SERIAL_ECHO("so"); // confirm active stream and the maximum block size supported
405
-              SERIAL_CHAR(static_cast<uint8_t>(buffer_size & 0xFF));
406
-              SERIAL_CHAR(static_cast<uint8_t>((buffer_size >> 8) & 0xFF));
407
-              SERIAL_CHAR('\n');
401
+              SERIAL_ECHOPAIR("echo: Datastream initialized (", stream_header.filesize);
402
+              SERIAL_ECHOLNPGM(" bytes expected)");
403
+              SERIAL_ECHOLNPAIR("so", buffer_size); // confirm active stream and the maximum block size supported
408 404
             }
409 405
             else {
410
-              SERIAL_ECHOLN("echo: Datastream initialization error (invalid token)");
406
+              SERIAL_ECHO_MSG("Datastream init error (invalid token)");
411 407
               stream_state = StreamState::STREAM_FAILED;
412 408
             }
413 409
             buffer_next_index = 0;
@@ -423,7 +419,7 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
423 419
                 stream_state = StreamState::PACKET_DATA;
424 420
               }
425 421
               else {
426
-                SERIAL_ECHO("echo: Datastream packet out of order");
422
+                SERIAL_ECHO_MSG("Datastream packet out of order");
427 423
                 stream_state = StreamState::PACKET_FLUSHRX;
428 424
               }
429 425
             }
@@ -431,61 +427,60 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
431 427
           case StreamState::PACKET_DATA:
432 428
             if (!stream_read(data)) break;
433 429
 
434
-            if (buffer_next_index < buffer_size) {
430
+            if (buffer_next_index < buffer_size)
435 431
               buffer[buffer_next_index] = data;
436
-            }
437 432
             else {
438
-              SERIAL_ECHO("echo: Datastream packet data buffer overrun");
433
+              SERIAL_ECHO_MSG("Datastream packet data buffer overrun");
439 434
               stream_state = StreamState::STREAM_FAILED;
440 435
               break;
441 436
             }
442 437
 
443 438
             packet.checksum = checksum(packet.checksum, data);
444
-            packet.bytes_received ++;
445
-            buffer_next_index ++;
439
+            packet.bytes_received++;
440
+            buffer_next_index++;
446 441
 
447
-            if (packet.bytes_received == packet.header.size) {
442
+            if (packet.bytes_received == packet.header.size)
448 443
               stream_state = StreamState::PACKET_VALIDATE;
449
-            }
444
+
450 445
             break;
451 446
           case StreamState::PACKET_VALIDATE:
452 447
             if (packet.header.checksum == packet.checksum) {
453 448
               packet_retries = 0;
454
-              packets_received ++;
449
+              packets_received++;
455 450
               bytes_received += packet.header.size;
456 451
 
457
-              if (packet.header.id == 0) {                 // id 0 is always the stream descriptor
452
+              if (packet.header.id == 0)                   // id 0 is always the stream descriptor
458 453
                 stream_state = StreamState::STREAM_HEADER; // defer packet confirmation to STREAM_HEADER state
459
-              }
460 454
               else {
461 455
                 if (bytes_received < stream_header.filesize) {
462
-                  stream_state = StreamState::PACKET_RESET;    // reset and receive next packet
463
-                  SERIAL_ECHOLN("ok");   // transmit confirm packet received and valid token
456
+                  stream_state = StreamState::PACKET_RESET; // reset and receive next packet
457
+                  SERIAL_ECHOLNPGM("ok");                   // transmit confirm packet received and valid token
458
+                  SERIAL_ECHOLN(packet.header.id);
464 459
                 }
465
-                else  {
460
+                else
466 461
                   stream_state = StreamState::STREAM_COMPLETE; // no more data required
467
-                }
462
+
468 463
                 if (card.write(buffer, buffer_next_index) < 0) {
469 464
                   stream_state = StreamState::STREAM_FAILED;
470
-                  SERIAL_ECHO("echo: IO ERROR");
465
+                  SERIAL_ECHO_MSG("SDCard IO Error");
471 466
                   break;
472 467
                 };
473 468
               }
474 469
             }
475 470
             else {
476
-              SERIAL_ECHO("echo: Block(");
477
-              SERIAL_ECHO(packet.header.id);
478
-              SERIAL_ECHOLN(") Corrupt");
471
+              SERIAL_ECHO_START();
472
+              SERIAL_ECHOPAIR("Block(", packet.header.id);
473
+              SERIAL_ECHOLNPGM(") Corrupt");
479 474
               stream_state = StreamState::PACKET_FLUSHRX;
480 475
             }
481 476
             break;
482 477
           case StreamState::PACKET_RESEND:
483 478
             if (packet_retries < MAX_RETRIES) {
484
-              packet_retries ++;
479
+              packet_retries++;
485 480
               stream_state = StreamState::PACKET_RESET;
486
-              SERIAL_ECHO("echo: Resend request ");
487
-              SERIAL_ECHOLN(packet_retries);
488
-              SERIAL_ECHOLN("rs"); // transmit resend packet token
481
+              SERIAL_ECHO_START();
482
+              SERIAL_ECHOLNPAIR("Resend request ", int(packet_retries));
483
+              SERIAL_ECHOLNPAIR("rs", packet.header.id); // transmit resend packet token
489 484
             }
490 485
             else {
491 486
               stream_state = StreamState::STREAM_FAILED;
@@ -501,27 +496,28 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
501 496
             packet.timeout = millis() + STREAM_MAX_WAIT;
502 497
             break;
503 498
           case StreamState::PACKET_TIMEOUT:
504
-            SERIAL_ECHOLN("echo: Datastream timeout");
499
+            SERIAL_ECHO_START();
500
+            SERIAL_ECHOLNPGM("Datastream timeout");
505 501
             stream_state = StreamState::PACKET_RESEND;
506 502
             break;
507 503
           case StreamState::STREAM_COMPLETE:
508 504
             stream_state = StreamState::STREAM_RESET;
509 505
             card.flag.binary_mode = false;
510
-            card.closefile();
511
-            SERIAL_ECHO("echo: ");
506
+            SERIAL_ECHO_START();
512 507
             SERIAL_ECHO(card.filename);
513
-            SERIAL_ECHO(" transfer completed @ ");
514
-            SERIAL_ECHO(((bytes_received / (millis() - time_stream_start) * 1000) / 1024 ));
515
-            SERIAL_ECHOLN("KiB/s");
516
-            SERIAL_ECHOLN("sc"); // transmit stream complete token
508
+            SERIAL_ECHOPAIR(" transfer completed @ ", ((bytes_received / (millis() - time_stream_start) * 1000) / 1024));
509
+            SERIAL_ECHOLNPGM("KiB/s");
510
+            SERIAL_ECHOLNPGM("sc"); // transmit stream complete token
511
+            card.closefile();
517 512
             return;
518 513
           case StreamState::STREAM_FAILED:
519 514
             stream_state = StreamState::STREAM_RESET;
520 515
             card.flag.binary_mode = false;
521 516
             card.closefile();
522 517
             card.removeFile(card.filename);
523
-            SERIAL_ECHOLN("echo: File transfer failed");
524
-            SERIAL_ECHOLN("sf"); // transmit stream failed token
518
+            SERIAL_ECHO_START();
519
+            SERIAL_ECHOLNPGM("File transfer failed");
520
+            SERIAL_ECHOLNPGM("sf"); // transmit stream failed token
525 521
             return;
526 522
         }
527 523
       }
@@ -536,7 +532,7 @@ void gcode_line_error(PGM_P const err, const int8_t port) {
536 532
 
537 533
   } binaryStream{};
538 534
 
539
-#endif // FAST_FILE_TRANSFER
535
+#endif // BINARY_FILE_TRANSFER
540 536
 
541 537
 FORCE_INLINE bool is_M29(const char * const cmd) {
542 538
   return cmd[0] == 'M' && cmd[1] == '2' && cmd[2] == '9' && !WITHIN(cmd[3], '0', '9');
@@ -555,7 +551,7 @@ inline void get_serial_commands() {
555 551
               #endif
556 552
             ;
557 553
 
558
-  #if ENABLED(FAST_FILE_TRANSFER)
554
+  #if ENABLED(BINARY_FILE_TRANSFER)
559 555
     if (card.flag.saving && card.flag.binary_mode) {
560 556
       /**
561 557
        * For binary stream file transfer, use serial_line_buffer as the working

+ 1
- 1
Marlin/src/gcode/sdcard/M20-M30_M32-M34_M524_M928.cpp Parādīt failu

@@ -175,7 +175,7 @@ void GcodeSuite::M27() {
175 175
  */
176 176
 void GcodeSuite::M28() {
177 177
 
178
-  #if ENABLED(FAST_FILE_TRANSFER)
178
+  #if ENABLED(BINARY_FILE_TRANSFER)
179 179
 
180 180
     bool binary_mode = false;
181 181
     char *p = parser.string_arg;

+ 1
- 1
Marlin/src/sd/cardreader.cpp Parādīt failu

@@ -51,7 +51,7 @@ card_flags_t CardReader::flag;
51 51
 char CardReader::filename[FILENAME_LENGTH], CardReader::longFilename[LONG_FILENAME_LENGTH];
52 52
 int8_t CardReader::autostart_index;
53 53
 
54
-#if ENABLED(FAST_FILE_TRANSFER) && NUM_SERIAL > 1
54
+#if ENABLED(BINARY_FILE_TRANSFER) && NUM_SERIAL > 1
55 55
   int8_t CardReader::transfer_port;
56 56
 #endif
57 57
 

+ 3
- 3
Marlin/src/sd/cardreader.h Parādīt failu

@@ -42,7 +42,7 @@ typedef struct {
42 42
        detected:1,
43 43
        filenameIsDir:1,
44 44
        abort_sd_printing:1
45
-       #if ENABLED(FAST_FILE_TRANSFER)
45
+       #if ENABLED(BINARY_FILE_TRANSFER)
46 46
          , binary_mode:1
47 47
        #endif
48 48
     ;
@@ -145,11 +145,11 @@ public:
145 145
   static char filename[FILENAME_LENGTH], longFilename[LONG_FILENAME_LENGTH];
146 146
   static int8_t autostart_index;
147 147
 
148
-  #if ENABLED(FAST_FILE_TRANSFER)
148
+  #if ENABLED(BINARY_FILE_TRANSFER)
149 149
     #if NUM_SERIAL > 1
150 150
       static int8_t transfer_port;
151 151
     #else
152
-      static constexpr int8_t transfer_port = SERIAL_PORT;
152
+      static constexpr int8_t transfer_port = 0;
153 153
     #endif
154 154
   #endif
155 155
 

+ 1
- 1
buildroot/share/tests/megaatmega2560-tests Parādīt failu

@@ -36,7 +36,7 @@ opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \
36 36
            AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
37 37
            SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
38 38
            FWRETRACT ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
39
-           POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE FAST_FILE_TRANSFER \
39
+           POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE BINARY_FILE_TRANSFER \
40 40
            LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST PINS_DEBUGGING \
41 41
            MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING BACKLASH_COMPENSATION BACKLASH_GCODE
42 42
 opt_set FANMUX0_PIN 53

Notiek ielāde…
Atcelt
Saglabāt