Преглед изворни кода

Apply HAS_SPI_LCD as needed

Scott Lahteine пре 4 година
родитељ
комит
eae543adf3

+ 4
- 4
Marlin/src/gcode/bedlevel/G26.cpp Прегледај датотеку

@@ -385,7 +385,7 @@ inline bool turn_on_heaters() {
385 385
   #if HAS_HEATED_BED
386 386
 
387 387
     if (g26_bed_temp > 25) {
388
-      #if ENABLED(ULTRA_LCD)
388
+      #if HAS_SPI_LCD
389 389
         ui.set_status_P(PSTR("G26 Heating Bed."), 99);
390 390
         ui.quick_feedback();
391 391
         #if HAS_LCD_MENU
@@ -406,7 +406,7 @@ inline bool turn_on_heaters() {
406 406
   #endif // HAS_HEATED_BED
407 407
 
408 408
   // Start heating the active nozzle
409
-  #if ENABLED(ULTRA_LCD)
409
+  #if HAS_SPI_LCD
410 410
     ui.set_status_P(PSTR("G26 Heating Nozzle."), 99);
411 411
     ui.quick_feedback();
412 412
   #endif
@@ -420,7 +420,7 @@ inline bool turn_on_heaters() {
420 420
     )
421 421
   ) return G26_ERR;
422 422
 
423
-  #if ENABLED(ULTRA_LCD)
423
+  #if HAS_SPI_LCD
424 424
     ui.reset_status();
425 425
     ui.quick_feedback();
426 426
   #endif
@@ -472,7 +472,7 @@ inline bool prime_nozzle() {
472 472
     else
473 473
   #endif
474 474
   {
475
-    #if ENABLED(ULTRA_LCD)
475
+    #if HAS_SPI_LCD
476 476
       ui.set_status_P(PSTR("Fixed Length Prime."), 99);
477 477
       ui.quick_feedback();
478 478
     #endif

+ 1
- 1
Marlin/src/lcd/fontutils.cpp Прегледај датотеку

@@ -9,7 +9,7 @@
9 9
 
10 10
 #include "../inc/MarlinConfig.h"
11 11
 
12
-#if ENABLED(ULTRA_LCD)
12
+#if HAS_SPI_LCD
13 13
   #include "ultralcd.h"
14 14
   #include "../Marlin.h"
15 15
 #endif

+ 2
- 2
Marlin/src/module/endstops.cpp Прегледај датотеку

@@ -330,7 +330,7 @@ void Endstops::resync() {
330 330
 void Endstops::event_handler() {
331 331
   static uint8_t prev_hit_state; // = 0
332 332
   if (hit_state && hit_state != prev_hit_state) {
333
-    #if ENABLED(ULTRA_LCD)
333
+    #if HAS_SPI_LCD
334 334
       char chrX = ' ', chrY = ' ', chrZ = ' ', chrP = ' ';
335 335
       #define _SET_STOP_CHAR(A,C) (chr## A = C)
336 336
     #else
@@ -361,7 +361,7 @@ void Endstops::event_handler() {
361 361
     #endif
362 362
     SERIAL_EOL();
363 363
 
364
-    #if ENABLED(ULTRA_LCD)
364
+    #if HAS_SPI_LCD
365 365
       ui.status_printf_P(0, PSTR(MSG_LCD_ENDSTOPS " %c %c %c %c"), chrX, chrY, chrZ, chrP);
366 366
     #endif
367 367
 

+ 4
- 4
Marlin/src/module/planner.cpp Прегледај датотеку

@@ -212,7 +212,7 @@ float Planner::previous_speed[NUM_AXIS],
212 212
   float Planner::position_cart[XYZE];
213 213
 #endif
214 214
 
215
-#if ENABLED(ULTRA_LCD)
215
+#if HAS_SPI_LCD
216 216
   volatile uint32_t Planner::block_buffer_runtime_us = 0;
217 217
 #endif
218 218
 
@@ -1469,7 +1469,7 @@ void Planner::quick_stop() {
1469 1469
   // forced to empty, there's no risk the ISR will touch this.
1470 1470
   delay_before_delivering = BLOCK_DELAY_FOR_1ST_MOVE;
1471 1471
 
1472
-  #if ENABLED(ULTRA_LCD)
1472
+  #if HAS_SPI_LCD
1473 1473
     // Clear the accumulated runtime
1474 1474
     clear_block_buffer_runtime();
1475 1475
   #endif
@@ -2024,14 +2024,14 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
2024 2024
         // buffer is draining, add extra time.  The amount of time added increases if the buffer is still emptied more.
2025 2025
         const uint32_t nst = segment_time_us + LROUND(2 * (settings.min_segment_time_us - segment_time_us) / moves_queued);
2026 2026
         inverse_secs = 1000000.0f / nst;
2027
-        #if defined(XY_FREQUENCY_LIMIT) || ENABLED(ULTRA_LCD)
2027
+        #if defined(XY_FREQUENCY_LIMIT) || HAS_SPI_LCD
2028 2028
           segment_time_us = nst;
2029 2029
         #endif
2030 2030
       }
2031 2031
     }
2032 2032
   #endif
2033 2033
 
2034
-  #if ENABLED(ULTRA_LCD)
2034
+  #if HAS_SPI_LCD
2035 2035
     // Protect the access to the position.
2036 2036
     const bool was_enabled = STEPPER_ISR_ENABLED();
2037 2037
     if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();

+ 4
- 4
Marlin/src/module/planner.h Прегледај датотеку

@@ -334,7 +334,7 @@ class Planner {
334 334
       static uint32_t axis_segment_time_us[2][3];
335 335
     #endif
336 336
 
337
-    #if ENABLED(ULTRA_LCD)
337
+    #if HAS_SPI_LCD
338 338
       volatile static uint32_t block_buffer_runtime_us; //Theoretical block buffer runtime in µs
339 339
     #endif
340 340
 
@@ -773,7 +773,7 @@ class Planner {
773 773
         // No trapezoid calculated? Don't execute yet.
774 774
         if (TEST(block->flag, BLOCK_BIT_RECALCULATE)) return nullptr;
775 775
 
776
-        #if ENABLED(ULTRA_LCD)
776
+        #if HAS_SPI_LCD
777 777
           block_buffer_runtime_us -= block->segment_time_us; // We can't be sure how long an active block will take, so don't count it.
778 778
         #endif
779 779
 
@@ -789,7 +789,7 @@ class Planner {
789 789
       }
790 790
 
791 791
       // The queue became empty
792
-      #if ENABLED(ULTRA_LCD)
792
+      #if HAS_SPI_LCD
793 793
         clear_block_buffer_runtime(); // paranoia. Buffer is empty now - so reset accumulated time to zero.
794 794
       #endif
795 795
 
@@ -806,7 +806,7 @@ class Planner {
806 806
         block_buffer_tail = next_block_index(block_buffer_tail);
807 807
     }
808 808
 
809
-    #if ENABLED(ULTRA_LCD)
809
+    #if HAS_SPI_LCD
810 810
 
811 811
       static uint16_t block_buffer_runtime() {
812 812
         #ifdef __AVR__

+ 1
- 1
Marlin/src/pins/ramps/pins_TT_OSCAR.h Прегледај датотеку

@@ -268,7 +268,7 @@
268 268
 // LCDs and Controllers //
269 269
 //////////////////////////
270 270
 
271
-#if ENABLED(ULTRA_LCD)
271
+#if HAS_SPI_LCD
272 272
 
273 273
   //
274 274
   // LCD Display output pins

Loading…
Откажи
Сачувај