Refactor: Remove if(true) condition, redundant break statement and decrease indentation.

This commit is contained in:
Marek Bel 2020-06-16 01:20:17 +02:00
parent 40ffea64ab
commit d5feed1f6a
1 changed files with 130 additions and 134 deletions

View File

@ -4582,8 +4582,6 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
case 76: case 76:
{ {
#ifdef PINDA_THERMISTOR #ifdef PINDA_THERMISTOR
if (true)
{
if (!has_temperature_compensation()) if (!has_temperature_compensation())
{ {
SERIAL_ECHOLNPGM("No PINDA thermistor"); SERIAL_ECHOLNPGM("No PINDA thermistor");
@ -4732,8 +4730,6 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
} }
lcd_temp_cal_show_result(true); lcd_temp_cal_show_result(true);
break;
}
#else //PINDA_THERMISTOR #else //PINDA_THERMISTOR
setTargetBed(PINDA_MIN_T); setTargetBed(PINDA_MIN_T);