浏览代码

Merge branch 'Development' into marlin_configurator

Latest upstream changes
Scott Lahteine 10 年前
父节点
当前提交
8b6766b37b
共有 5 个文件被更改,包括 3164 次插入2592 次删除
  1. 22
    0
      Documentation/GCodes.md
  2. 3132
    2583
      Marlin/Marlin_main.cpp
  3. 5
    4
      Marlin/language.h
  4. 2
    2
      Marlin/temperature.cpp
  5. 3
    3
      README.md

+ 22
- 0
Documentation/GCodes.md 查看文件

101
 *  M908 - Control digital trimpot directly.
101
 *  M908 - Control digital trimpot directly.
102
 *  M928 - Start SD logging (M928 filename.g) - ended by M29
102
 *  M928 - Start SD logging (M928 filename.g) - ended by M29
103
 *  M999 - Restart after being stopped by error
103
 *  M999 - Restart after being stopped by error
104
+
105
+# Comments
106
+
107
+Comments start at a `;` (semicolon) and end with the end of the line:
108
+
109
+    N3 T0*57 ; This is a comment
110
+    N4 G92 E0*67
111
+    ; So is this
112
+    N5 G28*22
113
+
114
+(example taken from the [RepRap wiki](http://reprap.org/wiki/Gcode#Comments))
115
+
116
+If you need to use a literal `;` somewhere (for example within `M117`), you can escape semicolons with a `\`
117
+(backslash):
118
+
119
+     M117 Hello \;)
120
+
121
+`\` can also be used to escape `\` itself, if you need a literal `\` in front of a `;`:
122
+
123
+    M117 backslash: \\;and a comment
124
+
125
+Please note that hosts should strip any comments before sending GCODE to the printer in order to save bandwidth.

+ 3132
- 2583
Marlin/Marlin_main.cpp
文件差异内容过多而无法显示
查看文件


+ 5
- 4
Marlin/language.h 查看文件

169
 #define MSG_PID_TIMEOUT                     MSG_PID_AUTOTUNE_FAILED " timeout"
169
 #define MSG_PID_TIMEOUT                     MSG_PID_AUTOTUNE_FAILED " timeout"
170
 #define MSG_BIAS                            " bias: "
170
 #define MSG_BIAS                            " bias: "
171
 #define MSG_D                               " d: "
171
 #define MSG_D                               " d: "
172
-#define MSG_MIN                             " min: "
173
-#define MSG_MAX                             " max: "
172
+#define MSG_T_MIN                           " min: "
173
+#define MSG_T_MAX                           " max: "
174
 #define MSG_KU                              " Ku: "
174
 #define MSG_KU                              " Ku: "
175
 #define MSG_TU                              " Tu: "
175
 #define MSG_TU                              " Tu: "
176
 #define MSG_CLASSIC_PID                     " Classic PID "
176
 #define MSG_CLASSIC_PID                     " Classic PID "
226
     #define STR_h3 "3"
226
     #define STR_h3 "3"
227
     #define STR_Deg "\271"
227
     #define STR_Deg "\271"
228
     #define STR_THERMOMETER "\002"
228
     #define STR_THERMOMETER "\002"
229
-  #endif
230
-  #ifdef DISPLAY_CHARSET_HD44780_WESTERN // HD44780 ROM Code: A02 (Western)
229
+  #elif defined(DISPLAY_CHARSET_HD44780_WESTERN) // HD44780 ROM Code: A02 (Western)
231
     #define STR_Ae "\216"
230
     #define STR_Ae "\216"
232
     #define STR_ae "\204"
231
     #define STR_ae "\204"
233
     #define STR_Oe "\211"
232
     #define STR_Oe "\211"
239
     #define STR_h3 "\263"
238
     #define STR_h3 "\263"
240
     #define STR_Deg "\337"
239
     #define STR_Deg "\337"
241
     #define STR_THERMOMETER "\002"
240
     #define STR_THERMOMETER "\002"
241
+  #elif defined(ULTRA_LCD)
242
+    #error You must enable either DISPLAY_CHARSET_HD44780_JAPAN or DISPLAY_CHARSET_HD44780_WESTERN for your LCD controller.
242
   #endif
243
   #endif
243
 #endif
244
 #endif
244
 /*
245
 /*

+ 2
- 2
Marlin/temperature.cpp 查看文件

296
 
296
 
297
             SERIAL_PROTOCOLPGM(MSG_BIAS); SERIAL_PROTOCOL(bias);
297
             SERIAL_PROTOCOLPGM(MSG_BIAS); SERIAL_PROTOCOL(bias);
298
             SERIAL_PROTOCOLPGM(MSG_D);    SERIAL_PROTOCOL(d);
298
             SERIAL_PROTOCOLPGM(MSG_D);    SERIAL_PROTOCOL(d);
299
-            SERIAL_PROTOCOLPGM(MSG_MIN);  SERIAL_PROTOCOL(min);
300
-            SERIAL_PROTOCOLPGM(MSG_MAX);  SERIAL_PROTOCOLLN(max);
299
+            SERIAL_PROTOCOLPGM(MSG_T_MIN);  SERIAL_PROTOCOL(min);
300
+            SERIAL_PROTOCOLPGM(MSG_T_MAX);  SERIAL_PROTOCOLLN(max);
301
             if (cycles > 2) {
301
             if (cycles > 2) {
302
               Ku = (4.0 * d) / (3.14159265 * (max - min) / 2.0);
302
               Ku = (4.0 * d) / (3.14159265 * (max - min) / 2.0);
303
               Tu = ((float)(t_low + t_high) / 1000.0);
303
               Tu = ((float)(t_low + t_high) / 1000.0);

+ 3
- 3
README.md 查看文件

41
 
41
 
42
  - Erik van der Zalm ([@ErikZalm](https://github.com/ErikZalm))
42
  - Erik van der Zalm ([@ErikZalm](https://github.com/ErikZalm))
43
  - [@daid](https://github.com/daid)
43
  - [@daid](https://github.com/daid)
44
- 
44
+
45
 Sprinters lead developers are Kliment and caru.
45
 Sprinters lead developers are Kliment and caru.
46
 Grbls lead developer is Simen Svale Skogsrud.
46
 Grbls lead developer is Simen Svale Skogsrud.
47
 Sonney Jeon (Chamnit) improved some parts of grbl
47
 Sonney Jeon (Chamnit) improved some parts of grbl
52
   - Bradley Feldman,
52
   - Bradley Feldman,
53
   - and others...
53
   - and others...
54
 
54
 
55
-## Licence
55
+## License
56
 
56
 
57
-Marlin is published unde the [GPL license](/Documentation/COPYING.md) because I believe in open development.
57
+Marlin is published under the [GPL license](/Documentation/COPYING.md) because I believe in open development.
58
 Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
58
 Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
59
 
59
 
60
 [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ErikZalm&url=https://github.com/MarlinFirmware/Marlin&title=Marlin&language=&tags=github&category=software)
60
 [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ErikZalm&url=https://github.com/MarlinFirmware/Marlin&title=Marlin&language=&tags=github&category=software)

正在加载...
取消
保存