瀏覽代碼

Merge pull request #240 from ZetaPhoenix/Marlin_v1_bugfix

Missing #else in temperature.cpp prevented reading bed temp when TEMP_BE...
ErikZalm 12 年之前
父節點
當前提交
769796ed4c
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      Marlin/temperature.cpp

+ 2
- 0
Marlin/temperature.cpp 查看文件

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

Loading…
取消
儲存