Browse Source

Allow to exclude Live K from the build

Yuri D'Elia 5 years ago
parent
commit
daa8007de5
2 changed files with 3 additions and 2 deletions
  1. 1 0
      Firmware/Configuration_adv.h
  2. 2 2
      Firmware/ultralcd.cpp

+ 1 - 0
Firmware/Configuration_adv.h

@@ -295,6 +295,7 @@
 
 #ifdef LIN_ADVANCE
   #define LIN_ADVANCE_K 0  // Unit: mm compression per 1mm/s extruder speed
+  #define LA_LIVE_K        // Allow adjusting K in the Tune menu
   //#define LA_DEBUG       // If enabled, this will generate debug information output over USB.
   //#define LA_DEBUG_LOGIC // @wavexx: setup logic channels for isr debugging
 #endif

+ 2 - 2
Firmware/ultralcd.cpp

@@ -6607,7 +6607,7 @@ static void lcd_colorprint_change() {
 }
 
 
-#ifdef LIN_ADVANCE
+#ifdef LA_LIVE_K
 // @wavexx: looks like there's no generic float editing function in menu.cpp so we
 //          redefine our custom handling functions to mimick other tunables
 #define MSG_ADVANCE_K PSTR("Advance K:")
@@ -6698,7 +6698,7 @@ static void lcd_tune_menu()
 
 	MENU_ITEM_EDIT_int3_P(_T(MSG_FAN_SPEED), &fanSpeed, 0, 255);//5
 	MENU_ITEM_EDIT_int3_P(_i("Flow"), &extrudemultiply, 10, 999);//6////MSG_FLOW
-#ifdef LIN_ADVANCE
+#ifdef LA_LIVE_K
 	MENU_ITEM_EDIT_advance_K();//7
 #endif
 #ifdef FILAMENTCHANGEENABLE