Fix Temperature

Githun insert this line when i merge with actual Branch development...
This commit is contained in:
MagoKimbra 2015-01-24 13:49:29 +01:00
parent 3d4ee6c868
commit ef5959a705

View File

@ -1764,7 +1764,6 @@ ISR(TIMER0_COMPB_vect)
raw_temp_2_value += ADC; raw_temp_2_value += ADC;
#endif #endif
temp_state = 8; temp_state = 8;
<<<<<<< HEAD
break; break;
case 8: // Prepare TEMP_3 case 8: // Prepare TEMP_3
#if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1) #if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
@ -1785,28 +1784,6 @@ ISR(TIMER0_COMPB_vect)
#endif #endif
temp_state = 10; //change so that Filament Width is also measured temp_state = 10; //change so that Filament Width is also measured
break; break;
=======
break;
case 8: // Prepare TEMP_3
#if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
#if TEMP_3_PIN > 7
ADCSRB = 1<<MUX5;
#else
ADCSRB = 0;
#endif
ADMUX = ((1 << REFS0) | (TEMP_3_PIN & 0x07));
ADCSRA |= 1<<ADSC; // Start conversion
#endif
lcd_buttons_update();
temp_state = 9;
break;
case 9: // Measure TEMP_3
#if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
raw_temp_3_value += ADC;
#endif
temp_state = 10; //change so that Filament Width is also measured
break;
>>>>>>> 0ebf896070e8364252df3b3f59111218f1918cc8
case 10: //Prepare FILWIDTH case 10: //Prepare FILWIDTH
#if defined(FILWIDTH_PIN) && (FILWIDTH_PIN> -1) #if defined(FILWIDTH_PIN) && (FILWIDTH_PIN> -1)
#if FILWIDTH_PIN>7 #if FILWIDTH_PIN>7