Browse Source

Merge remote-tracking branch 'upstream/Development' into Development

Latest upstream commits
Scott Lahteine 9 years ago
parent
commit
dcde09fdff

+ 36
- 7
Marlin/Conditionals.h View File

@@ -143,16 +143,45 @@
143 143
     #endif
144 144
   #else //no panel but just LCD
145 145
     #ifdef ULTRA_LCD
146
-    #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
147
-      #define LCD_WIDTH 22
148
-      #define LCD_HEIGHT 5
149
-    #else
150
-      #define LCD_WIDTH 16
151
-      #define LCD_HEIGHT 2
152
-    #endif
146
+      #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
147
+        #define LCD_WIDTH 22
148
+        #define LCD_HEIGHT 5
149
+      #else
150
+        #define LCD_WIDTH 16
151
+        #define LCD_HEIGHT 2
152
+      #endif
153 153
     #endif
154 154
   #endif
155 155
 
156
+  #ifdef DOGLCD
157
+    /* Custom characters defined in font font_6x10_marlin_symbols */
158
+    // \x00 intentionally skipped to avoid problems in strings
159
+    #define LCD_STR_REFRESH     "\x01"
160
+    #define LCD_STR_FOLDER      "\x02"
161
+    #define LCD_STR_ARROW_RIGHT "\x03"
162
+    #define LCD_STR_UPLEVEL     "\x04"
163
+    #define LCD_STR_CLOCK       "\x05"
164
+    #define LCD_STR_FEEDRATE    "\x06"
165
+    #define LCD_STR_BEDTEMP     "\x07"
166
+    #define LCD_STR_THERMOMETER "\x08"
167
+    #define LCD_STR_DEGREE      "\x09"
168
+
169
+    #define LCD_STR_SPECIAL_MAX '\x09'
170
+    // Maximum here is 0x1f because 0x20 is ' ' (space) and the normal charsets begin.
171
+    // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
172
+  #else
173
+    /* Custom characters defined in the first 8 characters of the LCD */
174
+    #define LCD_STR_BEDTEMP     "\x00"  // this will have 'unexpected' results when used in a string!
175
+    #define LCD_STR_DEGREE      "\x01"
176
+    #define LCD_STR_THERMOMETER "\x02"
177
+    #define LCD_STR_UPLEVEL     "\x03"
178
+    #define LCD_STR_REFRESH     "\x04"
179
+    #define LCD_STR_FOLDER      "\x05"
180
+    #define LCD_STR_FEEDRATE    "\x06"
181
+    #define LCD_STR_CLOCK       "\x07"
182
+    #define LCD_STR_ARROW_RIGHT ">"  /* from the default character set */
183
+  #endif
184
+
156 185
   /**
157 186
    * Default LCD contrast for dogm-like LCD displays
158 187
    */

+ 1
- 1
Marlin/Configuration.h View File

@@ -420,7 +420,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
420 420
 //#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
421 421
 
422 422
 //===========================================================================
423
-//============================ Manual Bed Leveling ==========================
423
+//============================ Mesh Bed Leveling ============================
424 424
 //===========================================================================
425 425
 
426 426
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling

+ 2
- 2
Marlin/ConfigurationStore.cpp View File

@@ -669,7 +669,7 @@ void Config_PrintSettings(bool forReplay) {
669 669
   #ifdef DELTA
670 670
     SERIAL_ECHO_START;
671 671
     if (!forReplay) {
672
-      SERIAL_ECHOLNPGM("Endstop adjustement (mm):");
672
+      SERIAL_ECHOLNPGM("Endstop adjustment (mm):");
673 673
       SERIAL_ECHO_START;
674 674
     }
675 675
     SERIAL_ECHOPAIR("  M666 X", endstop_adj[X_AXIS] );
@@ -686,7 +686,7 @@ void Config_PrintSettings(bool forReplay) {
686 686
   #elif defined(Z_DUAL_ENDSTOPS)
687 687
     SERIAL_ECHO_START;
688 688
     if (!forReplay) {
689
-      SERIAL_ECHOLNPGM("Z2 Endstop adjustement (mm):");
689
+      SERIAL_ECHOLNPGM("Z2 Endstop adjustment (mm):");
690 690
       SERIAL_ECHO_START;
691 691
     }
692 692
     SERIAL_ECHOPAIR("  M666 Z", z_endstop_adj );

+ 8
- 8
Marlin/Marlin_main.cpp View File

@@ -1369,7 +1369,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
1369 1369
     #endif
1370 1370
 
1371 1371
     if (verbose_level > 2) {
1372
-      SERIAL_PROTOCOLPGM(MSG_BED);
1372
+      SERIAL_PROTOCOLPGM("Bed");
1373 1373
       SERIAL_PROTOCOLPGM(" X: ");
1374 1374
       SERIAL_PROTOCOL_F(x, 3);
1375 1375
       SERIAL_PROTOCOLPGM(" Y: ");
@@ -2518,7 +2518,7 @@ inline void gcode_G28() {
2518 2518
       feedrate = homing_feedrate[Z_AXIS];
2519 2519
 
2520 2520
       run_z_probe();
2521
-      SERIAL_PROTOCOLPGM(MSG_BED);
2521
+      SERIAL_PROTOCOLPGM("Bed");
2522 2522
       SERIAL_PROTOCOLPGM(" X: ");
2523 2523
       SERIAL_PROTOCOL(current_position[X_AXIS] + 0.0001);
2524 2524
       SERIAL_PROTOCOLPGM(" Y: ");
@@ -2856,8 +2856,8 @@ inline void gcode_M42() {
2856 2856
   inline void gcode_M48() {
2857 2857
 
2858 2858
     double sum = 0.0, mean = 0.0, sigma = 0.0, sample_set[50];
2859
-    int verbose_level = 1, n_samples = 10, n_legs = 0;
2860
-    
2859
+    uint8_t verbose_level = 1, n_samples = 10, n_legs = 0;
2860
+
2861 2861
     if (code_seen('V') || code_seen('v')) {
2862 2862
       verbose_level = code_value_short();
2863 2863
       if (verbose_level < 0 || verbose_level > 4 ) {
@@ -2964,7 +2964,7 @@ inline void gcode_M42() {
2964 2964
 
2965 2965
     if (deploy_probe_for_each_reading) stow_z_probe();
2966 2966
 
2967
-    for (uint16_t n=0; n < n_samples; n++) {
2967
+    for (uint8_t n=0; n < n_samples; n++) {
2968 2968
 
2969 2969
       do_blocking_move_to(X_probe_location, Y_probe_location, Z_start_location); // Make sure we are at the probe location
2970 2970
 
@@ -2979,7 +2979,7 @@ inline void gcode_M42() {
2979 2979
         //SERIAL_ECHOPAIR("   direction: ",dir);
2980 2980
         //SERIAL_EOL;
2981 2981
 
2982
-        for (int l = 0; l < n_legs - 1; l++) {
2982
+        for (uint8_t l = 0; l < n_legs - 1; l++) {
2983 2983
           ms = millis();
2984 2984
           theta += RADIANS(dir * (ms % 20L));
2985 2985
           radius += (ms % 10L) - 5L;
@@ -3018,7 +3018,7 @@ inline void gcode_M42() {
3018 3018
       // Get the current mean for the data points we have so far
3019 3019
       //
3020 3020
       sum = 0.0;
3021
-      for (int j = 0; j <= n; j++) sum += sample_set[j];
3021
+      for (uint8_t j = 0; j <= n; j++) sum += sample_set[j];
3022 3022
       mean = sum / (n + 1);
3023 3023
 
3024 3024
       //
@@ -3026,7 +3026,7 @@ inline void gcode_M42() {
3026 3026
       // data points we have so far
3027 3027
       //
3028 3028
       sum = 0.0;
3029
-      for (int j = 0; j <= n; j++) {
3029
+      for (uint8_t j = 0; j <= n; j++) {
3030 3030
         float ss = sample_set[j] - mean;
3031 3031
         sum += ss * ss;
3032 3032
       }

+ 3
- 0
Marlin/SanityCheck.h View File

@@ -101,6 +101,9 @@
101 101
     #ifdef ENABLE_AUTO_BED_LEVELING
102 102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
103 103
     #endif
104
+    #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
105
+      #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8
106
+    #endif
104 107
   #endif
105 108
 
106 109
   /**

+ 0
- 16
Marlin/dogm_lcd_implementation.h View File

@@ -108,22 +108,6 @@
108 108
 
109 109
 #define START_ROW              0
110 110
 
111
-/* Custom characters defined in font font_6x10_marlin_symbols */
112
-// \x00 intentionally skipped to avoid problems in strings
113
-#define LCD_STR_REFRESH     "\x01"
114
-#define LCD_STR_FOLDER      "\x02"
115
-#define LCD_STR_ARROW_RIGHT "\x03"
116
-#define LCD_STR_UPLEVEL     "\x04"
117
-#define LCD_STR_CLOCK       "\x05"
118
-#define LCD_STR_FEEDRATE    "\x06"
119
-#define LCD_STR_BEDTEMP     "\x07"
120
-#define LCD_STR_THERMOMETER "\x08"
121
-#define LCD_STR_DEGREE      "\x09"
122
-
123
-#define LCD_STR_SPECIAL_MAX '\x09'
124
-// Maximum here is 0x1f because 0x20 is ' ' (space) and the normal charsets begin.
125
-// Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
126
-
127 111
 // LCD selection
128 112
 #ifdef U8GLIB_ST7920
129 113
   //U8GLIB_ST7920_128X64_RRD u8g(0,0,0);

+ 0
- 12
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

@@ -201,18 +201,6 @@
201 201
   #define LCD_STR_PROGRESS  "\x03\x04\x05"
202 202
 #endif
203 203
 
204
-/* Custom characters defined in the first 8 characters of the LCD */
205
-#define LCD_STR_BEDTEMP     "\x00"  // this will have 'unexpected' results when used in a string!
206
-#define LCD_STR_DEGREE      "\x01"
207
-#define LCD_STR_THERMOMETER "\x02"
208
-#define LCD_STR_UPLEVEL     "\x03"
209
-#define LCD_STR_REFRESH     "\x04"
210
-#define LCD_STR_FOLDER      "\x05"
211
-#define LCD_STR_FEEDRATE    "\x06"
212
-#define LCD_STR_CLOCK       "\x07"
213
-//#define LCD_STR_ARROW_RIGHT "\x7E"  /* from the default character set. Only available on DISPLAY_CHARSET_HD44780_JAPAN - at this place!*/
214
-#define LCD_STR_ARROW_RIGHT ">"  /* from the default character set */
215
-
216 204
 static void lcd_set_custom_characters(
217 205
   #ifdef LCD_PROGRESS_BAR
218 206
     bool progress_bar_set=true

Loading…
Cancel
Save