瀏覽代碼

Merge pull request #7207 from thinkyhead/bf_update_ubl_lcd

Expose DISABLE_M503 option as a test option
Scott Lahteine 8 年之前
父節點
當前提交
312f63dbe8
共有 34 個檔案被更改,包括 144 行新增111 行删除
  1. 2
    2
      Marlin/Configuration.h
  2. 14
    9
      Marlin/Marlin_main.cpp
  3. 67
    39
      Marlin/configuration_store.cpp
  4. 1
    1
      Marlin/configuration_store.h
  5. 2
    2
      Marlin/example_configurations/Anet/A6/Configuration.h
  6. 2
    2
      Marlin/example_configurations/Anet/A8/Configuration.h
  7. 2
    2
      Marlin/example_configurations/CL-260/Configuration.h
  8. 2
    2
      Marlin/example_configurations/Cartesio/Configuration.h
  9. 2
    2
      Marlin/example_configurations/Felix/Configuration.h
  10. 2
    2
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  11. 2
    2
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  12. 2
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  13. 2
    2
      Marlin/example_configurations/Hephestos_2/Configuration.h
  14. 2
    2
      Marlin/example_configurations/K8200/Configuration.h
  15. 2
    2
      Marlin/example_configurations/K8400/Configuration.h
  16. 2
    2
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  17. 2
    2
      Marlin/example_configurations/M150/Configuration.h
  18. 2
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  19. 2
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  20. 2
    2
      Marlin/example_configurations/SCARA/Configuration.h
  21. 2
    2
      Marlin/example_configurations/TAZ4/Configuration.h
  22. 2
    2
      Marlin/example_configurations/TinyBoy2/Configuration.h
  23. 2
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  24. 2
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  25. 2
    2
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  26. 2
    2
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  27. 2
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  28. 2
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  29. 2
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  30. 2
    2
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  31. 2
    2
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  32. 2
    2
      Marlin/example_configurations/makibox/Configuration.h
  33. 2
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  34. 2
    2
      Marlin/example_configurations/wt150/Configuration.h

+ 2
- 2
Marlin/Configuration.h 查看文件

992
 //#define EEPROM_SETTINGS
992
 //#define EEPROM_SETTINGS
993
 
993
 
994
 #if ENABLED(EEPROM_SETTINGS)
994
 #if ENABLED(EEPROM_SETTINGS)
995
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
996
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
995
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
996
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
997
 #endif
997
 #endif
998
 
998
 
999
 //
999
 //

+ 14
- 9
Marlin/Marlin_main.cpp 查看文件

9279
   (void)settings.reset();
9279
   (void)settings.reset();
9280
 }
9280
 }
9281
 
9281
 
9282
-/**
9283
- * M503: print settings currently in memory
9284
- */
9285
-inline void gcode_M503() {
9286
-  (void)settings.report(!parser.boolval('S', true));
9287
-}
9282
+#if DISABLED(DISABLE_M503)
9283
+  /**
9284
+   * M503: print settings currently in memory
9285
+   */
9286
+  inline void gcode_M503() {
9287
+    (void)settings.report(!parser.boolval('S', true));
9288
+  }
9289
+#endif
9288
 
9290
 
9289
 #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
9291
 #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
9290
 
9292
 
11022
       case 502: // M502: Revert to default settings
11024
       case 502: // M502: Revert to default settings
11023
         gcode_M502();
11025
         gcode_M502();
11024
         break;
11026
         break;
11025
-      case 503: // M503: print settings currently in memory
11026
-        gcode_M503();
11027
-        break;
11027
+
11028
+      #if DISABLED(DISABLE_M503)
11029
+        case 503: // M503: print settings currently in memory
11030
+          gcode_M503();
11031
+          break;
11032
+      #endif
11028
 
11033
 
11029
       #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
11034
       #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
11030
         case 540: // M540: Set abort on endstop hit for SD printing
11035
         case 540: // M540: Set abort on endstop hit for SD printing

+ 67
- 39
Marlin/configuration_store.cpp 查看文件

655
       EEPROM_WRITE(final_crc);
655
       EEPROM_WRITE(final_crc);
656
 
656
 
657
       // Report storage size
657
       // Report storage size
658
-      SERIAL_ECHO_START();
659
-      SERIAL_ECHOPAIR("Settings Stored (", eeprom_size - (EEPROM_OFFSET));
660
-      SERIAL_ECHOPAIR(" bytes; crc ", final_crc);
661
-      SERIAL_ECHOLNPGM(")");
658
+      #if ENABLED(EEPROM_CHITCHAT)
659
+        SERIAL_ECHO_START();
660
+        SERIAL_ECHOPAIR("Settings Stored (", eeprom_size - (EEPROM_OFFSET));
661
+        SERIAL_ECHOPAIR(" bytes; crc ", final_crc);
662
+        SERIAL_ECHOLNPGM(")");
663
+      #endif
662
     }
664
     }
663
 
665
 
664
     #if ENABLED(UBL_SAVE_ACTIVE_ON_M500)
666
     #if ENABLED(UBL_SAVE_ACTIVE_ON_M500)
689
         stored_ver[0] = '?';
691
         stored_ver[0] = '?';
690
         stored_ver[1] = '\0';
692
         stored_ver[1] = '\0';
691
       }
693
       }
692
-      SERIAL_ECHO_START();
693
-      SERIAL_ECHOPGM("EEPROM version mismatch ");
694
-      SERIAL_ECHOPAIR("(EEPROM=", stored_ver);
695
-      SERIAL_ECHOLNPGM(" Marlin=" EEPROM_VERSION ")");
694
+      #if ENABLED(EEPROM_CHITCHAT)
695
+        SERIAL_ECHO_START();
696
+        SERIAL_ECHOPGM("EEPROM version mismatch ");
697
+        SERIAL_ECHOPAIR("(EEPROM=", stored_ver);
698
+        SERIAL_ECHOLNPGM(" Marlin=" EEPROM_VERSION ")");
699
+      #endif
696
       reset();
700
       reset();
697
     }
701
     }
698
     else {
702
     else {
1004
       #endif
1008
       #endif
1005
 
1009
 
1006
       if (working_crc == stored_crc) {
1010
       if (working_crc == stored_crc) {
1007
-          postprocess();
1011
+        postprocess();
1012
+        #if ENABLED(EEPROM_CHITCHAT)
1008
           SERIAL_ECHO_START();
1013
           SERIAL_ECHO_START();
1009
           SERIAL_ECHO(version);
1014
           SERIAL_ECHO(version);
1010
           SERIAL_ECHOPAIR(" stored settings retrieved (", eeprom_index - (EEPROM_OFFSET));
1015
           SERIAL_ECHOPAIR(" stored settings retrieved (", eeprom_index - (EEPROM_OFFSET));
1011
           SERIAL_ECHOPAIR(" bytes; crc ", working_crc);
1016
           SERIAL_ECHOPAIR(" bytes; crc ", working_crc);
1012
           SERIAL_ECHOLNPGM(")");
1017
           SERIAL_ECHOLNPGM(")");
1018
+        #endif
1013
       }
1019
       }
1014
       else {
1020
       else {
1015
-        SERIAL_ERROR_START();
1016
-        SERIAL_ERRORPGM("EEPROM CRC mismatch - (stored) ");
1017
-        SERIAL_ERROR(stored_crc);
1018
-        SERIAL_ERRORPGM(" != ");
1019
-        SERIAL_ERROR(working_crc);
1020
-        SERIAL_ERRORLNPGM(" (calculated)!");
1021
+        #if ENABLED(EEPROM_CHITCHAT)
1022
+          SERIAL_ERROR_START();
1023
+          SERIAL_ERRORPGM("EEPROM CRC mismatch - (stored) ");
1024
+          SERIAL_ERROR(stored_crc);
1025
+          SERIAL_ERRORPGM(" != ");
1026
+          SERIAL_ERROR(working_crc);
1027
+          SERIAL_ERRORLNPGM(" (calculated)!");
1028
+        #endif
1021
         reset();
1029
         reset();
1022
       }
1030
       }
1023
 
1031
 
1029
 
1037
 
1030
         if (!ubl.sanity_check()) {
1038
         if (!ubl.sanity_check()) {
1031
           SERIAL_EOL();
1039
           SERIAL_EOL();
1032
-          ubl.echo_name();
1033
-          SERIAL_ECHOLNPGM(" initialized.\n");
1040
+          #if ENABLED(EEPROM_CHITCHAT)
1041
+            ubl.echo_name();
1042
+            SERIAL_ECHOLNPGM(" initialized.\n");
1043
+          #endif
1034
         }
1044
         }
1035
         else {
1045
         else {
1036
-          SERIAL_PROTOCOLPGM("?Can't enable ");
1037
-          ubl.echo_name();
1038
-          SERIAL_PROTOCOLLNPGM(".");
1046
+          #if ENABLED(EEPROM_CHITCHAT)
1047
+            SERIAL_PROTOCOLPGM("?Can't enable ");
1048
+            ubl.echo_name();
1049
+            SERIAL_PROTOCOLLNPGM(".");
1050
+          #endif
1039
           ubl.reset();
1051
           ubl.reset();
1040
         }
1052
         }
1041
 
1053
 
1042
         if (ubl.state.storage_slot >= 0) {
1054
         if (ubl.state.storage_slot >= 0) {
1043
           load_mesh(ubl.state.storage_slot);
1055
           load_mesh(ubl.state.storage_slot);
1044
-          SERIAL_ECHOPAIR("Mesh ", ubl.state.storage_slot);
1045
-          SERIAL_ECHOLNPGM(" loaded from storage.");
1056
+          #if ENABLED(EEPROM_CHITCHAT)
1057
+            SERIAL_ECHOPAIR("Mesh ", ubl.state.storage_slot);
1058
+            SERIAL_ECHOLNPGM(" loaded from storage.");
1059
+          #endif
1046
         }
1060
         }
1047
         else {
1061
         else {
1048
           ubl.reset();
1062
           ubl.reset();
1049
-          SERIAL_ECHOLNPGM("UBL System reset()");
1063
+          #if ENABLED(EEPROM_CHITCHAT)
1064
+            SERIAL_ECHOLNPGM("UBL System reset()");
1065
+          #endif
1050
         }
1066
         }
1051
       #endif
1067
       #endif
1052
     }
1068
     }
1053
 
1069
 
1054
-    #if ENABLED(EEPROM_CHITCHAT)
1070
+    #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
1055
       report();
1071
       report();
1056
     #endif
1072
     #endif
1057
 
1073
 
1060
 
1076
 
1061
   #if ENABLED(AUTO_BED_LEVELING_UBL)
1077
   #if ENABLED(AUTO_BED_LEVELING_UBL)
1062
 
1078
 
1063
-    void ubl_invalid_slot(const int s) {
1064
-      SERIAL_PROTOCOLLNPGM("?Invalid slot.");
1065
-      SERIAL_PROTOCOL(s);
1066
-      SERIAL_PROTOCOLLNPGM(" mesh slots available.");
1067
-    }
1079
+    #if ENABLED(EEPROM_CHITCHAT)
1080
+      void ubl_invalid_slot(const int s) {
1081
+        SERIAL_PROTOCOLLNPGM("?Invalid slot.");
1082
+        SERIAL_PROTOCOL(s);
1083
+        SERIAL_PROTOCOLLNPGM(" mesh slots available.");
1084
+      }
1085
+    #endif
1068
 
1086
 
1069
     int MarlinSettings::calc_num_meshes() {
1087
     int MarlinSettings::calc_num_meshes() {
1070
       //obviously this will get more sophisticated once we've added an actual MAT
1088
       //obviously this will get more sophisticated once we've added an actual MAT
1079
       #if ENABLED(AUTO_BED_LEVELING_UBL)
1097
       #if ENABLED(AUTO_BED_LEVELING_UBL)
1080
         const int a = calc_num_meshes();
1098
         const int a = calc_num_meshes();
1081
         if (!WITHIN(slot, 0, a - 1)) {
1099
         if (!WITHIN(slot, 0, a - 1)) {
1082
-          ubl_invalid_slot(a);
1083
-          SERIAL_PROTOCOLPAIR("E2END=", E2END);
1084
-          SERIAL_PROTOCOLPAIR(" meshes_end=", meshes_end);
1085
-          SERIAL_PROTOCOLLNPAIR(" slot=", slot);
1086
-          SERIAL_EOL();
1100
+          #if ENABLED(EEPROM_CHITCHAT)
1101
+            ubl_invalid_slot(a);
1102
+            SERIAL_PROTOCOLPAIR("E2END=", E2END);
1103
+            SERIAL_PROTOCOLPAIR(" meshes_end=", meshes_end);
1104
+            SERIAL_PROTOCOLLNPAIR(" slot=", slot);
1105
+            SERIAL_EOL();
1106
+          #endif
1087
           return;
1107
           return;
1088
         }
1108
         }
1089
 
1109
 
1094
 
1114
 
1095
         // Write crc to MAT along with other data, or just tack on to the beginning or end
1115
         // Write crc to MAT along with other data, or just tack on to the beginning or end
1096
 
1116
 
1097
-        SERIAL_PROTOCOLLNPAIR("Mesh saved in slot ", slot);
1117
+        #if ENABLED(EEPROM_CHITCHAT)
1118
+          SERIAL_PROTOCOLLNPAIR("Mesh saved in slot ", slot);
1119
+        #endif
1098
 
1120
 
1099
       #else
1121
       #else
1100
 
1122
 
1110
         const int16_t a = settings.calc_num_meshes();
1132
         const int16_t a = settings.calc_num_meshes();
1111
 
1133
 
1112
         if (!WITHIN(slot, 0, a - 1)) {
1134
         if (!WITHIN(slot, 0, a - 1)) {
1113
-          ubl_invalid_slot(a);
1135
+          #if ENABLED(EEPROM_CHITCHAT)
1136
+            ubl_invalid_slot(a);
1137
+          #endif
1114
           return;
1138
           return;
1115
         }
1139
         }
1116
 
1140
 
1121
 
1145
 
1122
         // Compare crc with crc from MAT, or read from end
1146
         // Compare crc with crc from MAT, or read from end
1123
 
1147
 
1124
-        SERIAL_PROTOCOLLNPAIR("Mesh loaded from slot ", slot);
1148
+        #if ENABLED(EEPROM_CHITCHAT)
1149
+          SERIAL_PROTOCOLLNPAIR("Mesh loaded from slot ", slot);
1150
+        #endif
1125
 
1151
 
1126
       #else
1152
       #else
1127
 
1153
 
1345
 
1371
 
1346
   postprocess();
1372
   postprocess();
1347
 
1373
 
1348
-  SERIAL_ECHO_START();
1349
-  SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
1374
+  #if ENABLED(EEPROM_CHITCHAT)
1375
+    SERIAL_ECHO_START();
1376
+    SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
1377
+  #endif
1350
 }
1378
 }
1351
 
1379
 
1352
 #if DISABLED(DISABLE_M503)
1380
 #if DISABLED(DISABLE_M503)

+ 1
- 1
Marlin/configuration_store.h 查看文件

55
       static void report(bool forReplay=false);
55
       static void report(bool forReplay=false);
56
     #else
56
     #else
57
       FORCE_INLINE
57
       FORCE_INLINE
58
-      static void report(bool forReplay=false) { }
58
+      static void report(bool forReplay=false) { UNUSED(forReplay); }
59
     #endif
59
     #endif
60
 
60
 
61
   private:
61
   private:

+ 2
- 2
Marlin/example_configurations/Anet/A6/Configuration.h 查看文件

1148
 #define EEPROM_SETTINGS
1148
 #define EEPROM_SETTINGS
1149
 
1149
 
1150
 #if ENABLED(EEPROM_SETTINGS)
1150
 #if ENABLED(EEPROM_SETTINGS)
1151
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1152
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1151
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1152
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1153
 #endif
1153
 #endif
1154
 
1154
 
1155
 //
1155
 //

+ 2
- 2
Marlin/example_configurations/Anet/A8/Configuration.h 查看文件

998
 #define EEPROM_SETTINGS
998
 #define EEPROM_SETTINGS
999
 
999
 
1000
 #if ENABLED(EEPROM_SETTINGS)
1000
 #if ENABLED(EEPROM_SETTINGS)
1001
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1002
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1001
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1002
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1003
 #endif
1003
 #endif
1004
 
1004
 
1005
 //
1005
 //

+ 2
- 2
Marlin/example_configurations/CL-260/Configuration.h 查看文件

989
 //#define EEPROM_SETTINGS
989
 //#define EEPROM_SETTINGS
990
 
990
 
991
 #if ENABLED(EEPROM_SETTINGS)
991
 #if ENABLED(EEPROM_SETTINGS)
992
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
993
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
992
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
993
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
994
 #endif
994
 #endif
995
 
995
 
996
 //
996
 //

+ 2
- 2
Marlin/example_configurations/Cartesio/Configuration.h 查看文件

986
 //#define EEPROM_SETTINGS
986
 //#define EEPROM_SETTINGS
987
 
987
 
988
 #if ENABLED(EEPROM_SETTINGS)
988
 #if ENABLED(EEPROM_SETTINGS)
989
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
990
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
989
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
990
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
991
 #endif
991
 #endif
992
 
992
 
993
 //
993
 //

+ 2
- 2
Marlin/example_configurations/Felix/Configuration.h 查看文件

970
 //#define EEPROM_SETTINGS
970
 //#define EEPROM_SETTINGS
971
 
971
 
972
 #if ENABLED(EEPROM_SETTINGS)
972
 #if ENABLED(EEPROM_SETTINGS)
973
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
974
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
973
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
974
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
975
 #endif
975
 #endif
976
 
976
 
977
 //
977
 //

+ 2
- 2
Marlin/example_configurations/Felix/DUAL/Configuration.h 查看文件

970
 //#define EEPROM_SETTINGS
970
 //#define EEPROM_SETTINGS
971
 
971
 
972
 #if ENABLED(EEPROM_SETTINGS)
972
 #if ENABLED(EEPROM_SETTINGS)
973
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
974
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
973
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
974
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
975
 #endif
975
 #endif
976
 
976
 
977
 //
977
 //

+ 2
- 2
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h 查看文件

992
 #define EEPROM_SETTINGS
992
 #define EEPROM_SETTINGS
993
 
993
 
994
 #if ENABLED(EEPROM_SETTINGS)
994
 #if ENABLED(EEPROM_SETTINGS)
995
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
996
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
995
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
996
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
997
 #endif
997
 #endif
998
 
998
 
999
 //
999
 //

+ 2
- 2
Marlin/example_configurations/Hephestos/Configuration.h 查看文件

978
 //#define EEPROM_SETTINGS
978
 //#define EEPROM_SETTINGS
979
 
979
 
980
 #if ENABLED(EEPROM_SETTINGS)
980
 #if ENABLED(EEPROM_SETTINGS)
981
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
982
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
981
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
982
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
983
 #endif
983
 #endif
984
 
984
 
985
 //
985
 //

+ 2
- 2
Marlin/example_configurations/Hephestos_2/Configuration.h 查看文件

981
 #define EEPROM_SETTINGS
981
 #define EEPROM_SETTINGS
982
 
982
 
983
 #if ENABLED(EEPROM_SETTINGS)
983
 #if ENABLED(EEPROM_SETTINGS)
984
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
985
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
984
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
985
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
986
 #endif
986
 #endif
987
 
987
 
988
 //
988
 //

+ 2
- 2
Marlin/example_configurations/K8200/Configuration.h 查看文件

1017
 #define EEPROM_SETTINGS // K8200: uses EEPROM by default
1017
 #define EEPROM_SETTINGS // K8200: uses EEPROM by default
1018
 
1018
 
1019
 #if ENABLED(EEPROM_SETTINGS)
1019
 #if ENABLED(EEPROM_SETTINGS)
1020
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1021
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1020
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1021
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1022
 #endif
1022
 #endif
1023
 
1023
 
1024
 //
1024
 //

+ 2
- 2
Marlin/example_configurations/K8400/Configuration.h 查看文件

988
 #define EEPROM_SETTINGS
988
 #define EEPROM_SETTINGS
989
 
989
 
990
 #if ENABLED(EEPROM_SETTINGS)
990
 #if ENABLED(EEPROM_SETTINGS)
991
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
992
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
991
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
992
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
993
 #endif
993
 #endif
994
 
994
 
995
 //
995
 //

+ 2
- 2
Marlin/example_configurations/K8400/Dual-head/Configuration.h 查看文件

988
 #define EEPROM_SETTINGS
988
 #define EEPROM_SETTINGS
989
 
989
 
990
 #if ENABLED(EEPROM_SETTINGS)
990
 #if ENABLED(EEPROM_SETTINGS)
991
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
992
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
991
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
992
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
993
 #endif
993
 #endif
994
 
994
 
995
 //
995
 //

+ 2
- 2
Marlin/example_configurations/M150/Configuration.h 查看文件

1015
 #define EEPROM_SETTINGS
1015
 #define EEPROM_SETTINGS
1016
 
1016
 
1017
 #if ENABLED(EEPROM_SETTINGS)
1017
 #if ENABLED(EEPROM_SETTINGS)
1018
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1019
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1018
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1019
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1020
 #endif
1020
 #endif
1021
 
1021
 
1022
 //
1022
 //

+ 2
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 查看文件

988
 //#define EEPROM_SETTINGS
988
 //#define EEPROM_SETTINGS
989
 
989
 
990
 #if ENABLED(EEPROM_SETTINGS)
990
 #if ENABLED(EEPROM_SETTINGS)
991
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
992
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
991
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
992
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
993
 #endif
993
 #endif
994
 
994
 
995
 //
995
 //

+ 2
- 2
Marlin/example_configurations/RigidBot/Configuration.h 查看文件

986
 #define EEPROM_SETTINGS
986
 #define EEPROM_SETTINGS
987
 
987
 
988
 #if ENABLED(EEPROM_SETTINGS)
988
 #if ENABLED(EEPROM_SETTINGS)
989
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
990
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
989
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
990
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
991
 #endif
991
 #endif
992
 
992
 
993
 //
993
 //

+ 2
- 2
Marlin/example_configurations/SCARA/Configuration.h 查看文件

1000
 //#define EEPROM_SETTINGS
1000
 //#define EEPROM_SETTINGS
1001
 
1001
 
1002
 #if ENABLED(EEPROM_SETTINGS)
1002
 #if ENABLED(EEPROM_SETTINGS)
1003
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1004
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1003
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1004
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1005
 #endif
1005
 #endif
1006
 
1006
 
1007
 //
1007
 //

+ 2
- 2
Marlin/example_configurations/TAZ4/Configuration.h 查看文件

1007
 #define EEPROM_SETTINGS
1007
 #define EEPROM_SETTINGS
1008
 
1008
 
1009
 #if ENABLED(EEPROM_SETTINGS)
1009
 #if ENABLED(EEPROM_SETTINGS)
1010
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1011
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1010
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1011
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1012
 #endif
1012
 #endif
1013
 
1013
 
1014
 //
1014
 //

+ 2
- 2
Marlin/example_configurations/TinyBoy2/Configuration.h 查看文件

1044
 #define EEPROM_SETTINGS
1044
 #define EEPROM_SETTINGS
1045
 
1045
 
1046
 #if ENABLED(EEPROM_SETTINGS)
1046
 #if ENABLED(EEPROM_SETTINGS)
1047
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1048
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1047
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1048
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1049
 #endif
1049
 #endif
1050
 
1050
 
1051
 //
1051
 //

+ 2
- 2
Marlin/example_configurations/WITBOX/Configuration.h 查看文件

978
 //#define EEPROM_SETTINGS
978
 //#define EEPROM_SETTINGS
979
 
979
 
980
 #if ENABLED(EEPROM_SETTINGS)
980
 #if ENABLED(EEPROM_SETTINGS)
981
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
982
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
981
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
982
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
983
 #endif
983
 #endif
984
 
984
 
985
 //
985
 //

+ 2
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h 查看文件

988
 //#define EEPROM_SETTINGS
988
 //#define EEPROM_SETTINGS
989
 
989
 
990
 #if ENABLED(EEPROM_SETTINGS)
990
 #if ENABLED(EEPROM_SETTINGS)
991
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
992
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
991
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
992
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
993
 #endif
993
 #endif
994
 
994
 
995
 //
995
 //

+ 2
- 2
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h 查看文件

1108
 #define EEPROM_SETTINGS
1108
 #define EEPROM_SETTINGS
1109
 
1109
 
1110
 #if ENABLED(EEPROM_SETTINGS)
1110
 #if ENABLED(EEPROM_SETTINGS)
1111
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1112
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1111
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1112
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1113
 #endif
1113
 #endif
1114
 
1114
 
1115
 //
1115
 //

+ 2
- 2
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h 查看文件

1110
 #define EEPROM_SETTINGS
1110
 #define EEPROM_SETTINGS
1111
 
1111
 
1112
 #if ENABLED(EEPROM_SETTINGS)
1112
 #if ENABLED(EEPROM_SETTINGS)
1113
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1114
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1113
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1114
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1115
 #endif
1115
 #endif
1116
 
1116
 
1117
 //
1117
 //

+ 2
- 2
Marlin/example_configurations/delta/generic/Configuration.h 查看文件

1099
 //#define EEPROM_SETTINGS
1099
 //#define EEPROM_SETTINGS
1100
 
1100
 
1101
 #if ENABLED(EEPROM_SETTINGS)
1101
 #if ENABLED(EEPROM_SETTINGS)
1102
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1103
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1102
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1103
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1104
 #endif
1104
 #endif
1105
 
1105
 
1106
 //
1106
 //

+ 2
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h 查看文件

1102
 //#define EEPROM_SETTINGS
1102
 //#define EEPROM_SETTINGS
1103
 
1103
 
1104
 #if ENABLED(EEPROM_SETTINGS)
1104
 #if ENABLED(EEPROM_SETTINGS)
1105
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1106
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1105
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1106
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1107
 #endif
1107
 #endif
1108
 
1108
 
1109
 //
1109
 //

+ 2
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h 查看文件

1107
 //#define EEPROM_SETTINGS
1107
 //#define EEPROM_SETTINGS
1108
 
1108
 
1109
 #if ENABLED(EEPROM_SETTINGS)
1109
 #if ENABLED(EEPROM_SETTINGS)
1110
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1111
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1110
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1111
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1112
 #endif
1112
 #endif
1113
 
1113
 
1114
 //
1114
 //

+ 2
- 2
Marlin/example_configurations/delta/kossel_xl/Configuration.h 查看文件

1165
 #define EEPROM_SETTINGS
1165
 #define EEPROM_SETTINGS
1166
 
1166
 
1167
 #if ENABLED(EEPROM_SETTINGS)
1167
 #if ENABLED(EEPROM_SETTINGS)
1168
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1169
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1168
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1169
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1170
 #endif
1170
 #endif
1171
 
1171
 
1172
 //
1172
 //

+ 2
- 2
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h 查看文件

1004
 #define EEPROM_SETTINGS
1004
 #define EEPROM_SETTINGS
1005
 
1005
 
1006
 #if ENABLED(EEPROM_SETTINGS)
1006
 #if ENABLED(EEPROM_SETTINGS)
1007
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
1008
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
1007
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
1008
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
1009
 #endif
1009
 #endif
1010
 
1010
 
1011
 //
1011
 //

+ 2
- 2
Marlin/example_configurations/makibox/Configuration.h 查看文件

991
 #define EEPROM_SETTINGS
991
 #define EEPROM_SETTINGS
992
 
992
 
993
 #if ENABLED(EEPROM_SETTINGS)
993
 #if ENABLED(EEPROM_SETTINGS)
994
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
995
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
994
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
995
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
996
 #endif
996
 #endif
997
 
997
 
998
 //
998
 //

+ 2
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h 查看文件

983
 //#define EEPROM_SETTINGS
983
 //#define EEPROM_SETTINGS
984
 
984
 
985
 #if ENABLED(EEPROM_SETTINGS)
985
 #if ENABLED(EEPROM_SETTINGS)
986
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
987
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
986
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
987
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
988
 #endif
988
 #endif
989
 
989
 
990
 //
990
 //

+ 2
- 2
Marlin/example_configurations/wt150/Configuration.h 查看文件

994
 #define EEPROM_SETTINGS
994
 #define EEPROM_SETTINGS
995
 
995
 
996
 #if ENABLED(EEPROM_SETTINGS)
996
 #if ENABLED(EEPROM_SETTINGS)
997
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
998
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
997
+  //#define DISABLE_M503  // Saves ~2700 bytes of PROGMEM. Disable for release!
998
+  #define EEPROM_CHITCHAT // Print a report on M500. Please keep turned on.
999
 #endif
999
 #endif
1000
 
1000
 
1001
 //
1001
 //

Loading…
取消
儲存