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
     #endif
143
     #endif
144
   #else //no panel but just LCD
144
   #else //no panel but just LCD
145
     #ifdef ULTRA_LCD
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
     #endif
153
     #endif
154
   #endif
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
    * Default LCD contrast for dogm-like LCD displays
186
    * Default LCD contrast for dogm-like LCD displays
158
    */
187
    */

+ 1
- 1
Marlin/Configuration.h View File

420
 //#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
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
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling
426
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling

+ 2
- 2
Marlin/ConfigurationStore.cpp View File

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

+ 8
- 8
Marlin/Marlin_main.cpp View File

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

+ 3
- 0
Marlin/SanityCheck.h View File

101
     #ifdef ENABLE_AUTO_BED_LEVELING
101
     #ifdef ENABLE_AUTO_BED_LEVELING
102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
103
     #endif
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
   #endif
107
   #endif
105
 
108
 
106
   /**
109
   /**

+ 0
- 16
Marlin/dogm_lcd_implementation.h View File

108
 
108
 
109
 #define START_ROW              0
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
 // LCD selection
111
 // LCD selection
128
 #ifdef U8GLIB_ST7920
112
 #ifdef U8GLIB_ST7920
129
   //U8GLIB_ST7920_128X64_RRD u8g(0,0,0);
113
   //U8GLIB_ST7920_128X64_RRD u8g(0,0,0);

+ 0
- 12
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

201
   #define LCD_STR_PROGRESS  "\x03\x04\x05"
201
   #define LCD_STR_PROGRESS  "\x03\x04\x05"
202
 #endif
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
 static void lcd_set_custom_characters(
204
 static void lcd_set_custom_characters(
217
   #ifdef LCD_PROGRESS_BAR
205
   #ifdef LCD_PROGRESS_BAR
218
     bool progress_bar_set=true
206
     bool progress_bar_set=true

Loading…
Cancel
Save