Add more nozzles

0.15, 0.2, 0.5 mm
This commit is contained in:
Przemek Grondek 2021-08-24 23:39:27 +02:00
parent ffcd0dd1ba
commit 2b009fb816
2 changed files with 18 additions and 0 deletions

View File

@ -5383,11 +5383,23 @@ while (0)
static void lcd_nozzle_diameter_cycle(void) { static void lcd_nozzle_diameter_cycle(void) {
uint16_t nDiameter; uint16_t nDiameter;
switch(oNozzleDiameter){ switch(oNozzleDiameter){
case ClNozzleDiameter::_Diameter_150:
oNozzleDiameter=ClNozzleDiameter::_Diameter_200;
nDiameter=200;
break;
case ClNozzleDiameter::_Diameter_200:
oNozzleDiameter=ClNozzleDiameter::_Diameter_250;
nDiameter=250;
break;
case ClNozzleDiameter::_Diameter_250: case ClNozzleDiameter::_Diameter_250:
oNozzleDiameter=ClNozzleDiameter::_Diameter_400; oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
nDiameter=400; nDiameter=400;
break; break;
case ClNozzleDiameter::_Diameter_400: case ClNozzleDiameter::_Diameter_400:
oNozzleDiameter=ClNozzleDiameter::_Diameter_500;
nDiameter=600;
break;
case ClNozzleDiameter::_Diameter_500:
oNozzleDiameter=ClNozzleDiameter::_Diameter_600; oNozzleDiameter=ClNozzleDiameter::_Diameter_600;
nDiameter=600; nDiameter=600;
break; break;
@ -5417,8 +5429,11 @@ do\
float fNozzleDiam;\ float fNozzleDiam;\
switch(oNozzleDiameter)\ switch(oNozzleDiameter)\
{\ {\
case ClNozzleDiameter::_Diameter_150: fNozzleDiam = 0.15f; break;\
case ClNozzleDiameter::_Diameter_200: fNozzleDiam = 0.20f; break;\
case ClNozzleDiameter::_Diameter_250: fNozzleDiam = 0.25f; break;\ case ClNozzleDiameter::_Diameter_250: fNozzleDiam = 0.25f; break;\
case ClNozzleDiameter::_Diameter_400: fNozzleDiam = 0.4f; break;\ case ClNozzleDiameter::_Diameter_400: fNozzleDiam = 0.4f; break;\
case ClNozzleDiameter::_Diameter_500: fNozzleDiam = 0.5f; break;\
case ClNozzleDiameter::_Diameter_600: fNozzleDiam = 0.6f; 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;\ case ClNozzleDiameter::_Diameter_1000: fNozzleDiam = 1.0f; break;\

View File

@ -48,8 +48,11 @@ enum class ClPrintChecking:uint_least8_t
enum class ClNozzleDiameter:uint_least8_t enum class ClNozzleDiameter:uint_least8_t
{ {
_Diameter_150=15,
_Diameter_200=20,
_Diameter_250=25, _Diameter_250=25,
_Diameter_400=40, _Diameter_400=40,
_Diameter_500=50,
_Diameter_600=60, _Diameter_600=60,
_Diameter_800=80, _Diameter_800=80,
_Diameter_1000=100, _Diameter_1000=100,