From ffcd0dd1bae4aa62cf2002f362c926fd0afa73c9 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 24 Aug 2021 21:02:50 +0200 Subject: [PATCH] Add 1mm nozzle --- Firmware/ultralcd.cpp | 7 ++++++- Firmware/util.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index daac8d71..eab695e2 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -5396,6 +5396,10 @@ static void lcd_nozzle_diameter_cycle(void) { nDiameter=800; break; case ClNozzleDiameter::_Diameter_800: + oNozzleDiameter=ClNozzleDiameter::_Diameter_1000; + nDiameter=1000; + break; + case ClNozzleDiameter::_Diameter_1000: oNozzleDiameter=ClNozzleDiameter::_Diameter_250; nDiameter=250; break; @@ -5416,7 +5420,8 @@ do\ case ClNozzleDiameter::_Diameter_250: fNozzleDiam = 0.25f; break;\ case ClNozzleDiameter::_Diameter_400: fNozzleDiam = 0.4f; break;\ case ClNozzleDiameter::_Diameter_600: fNozzleDiam = 0.6f; break;\ - case ClNozzleDiameter::_Diameter_800: fNozzleDiam = 0.8f; break;\ + case ClNozzleDiameter::_Diameter_800: fNozzleDiam = 0.8f; break; \ + case ClNozzleDiameter::_Diameter_1000: fNozzleDiam = 1.0f; break;\ default: fNozzleDiam = 0.4f; break;\ }\ MENU_ITEM_TOGGLE(_T(MSG_NOZZLE_DIAMETER), ftostr12ns(fNozzleDiam), lcd_nozzle_diameter_cycle);\ diff --git a/Firmware/util.h b/Firmware/util.h index 6d34aa08..82fea70f 100644 --- a/Firmware/util.h +++ b/Firmware/util.h @@ -52,6 +52,7 @@ enum class ClNozzleDiameter:uint_least8_t _Diameter_400=40, _Diameter_600=60, _Diameter_800=80, + _Diameter_1000=100, _Diameter_Undef=EEPROM_EMPTY_VALUE };