Browse Source

Missing #else in temperature.cpp prevented reading bed temp when TEMP_BED_PIN <7. Thanks to Leland Wallace for helping me track this down via "Sesame Street" coding (what is not like the other)

ZetaPhoenix 13 years ago
parent
commit
e8c92e0a95
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/temperature.cpp

+ 2
- 0
Marlin/temperature.cpp View File

885
       #if (TEMP_BED_PIN > -1)
885
       #if (TEMP_BED_PIN > -1)
886
         #if TEMP_BED_PIN > 7
886
         #if TEMP_BED_PIN > 7
887
           ADCSRB = 1<<MUX5;
887
           ADCSRB = 1<<MUX5;
888
+        #else
889
+          ADCSRB = 0;
888
         #endif
890
         #endif
889
         ADMUX = ((1 << REFS0) | (TEMP_BED_PIN & 0x07));
891
         ADMUX = ((1 << REFS0) | (TEMP_BED_PIN & 0x07));
890
         ADCSRA |= 1<<ADSC; // Start conversion
892
         ADCSRA |= 1<<ADSC; // Start conversion

Loading…
Cancel
Save