mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-18 07:29:33 +00:00
Merge pull request #240 from ZetaPhoenix/Marlin_v1_bugfix
Missing #else in temperature.cpp prevented reading bed temp when TEMP_BE...
This commit is contained in:
commit
769796ed4c
1 changed files with 2 additions and 0 deletions
|
@ -885,6 +885,8 @@ ISR(TIMER0_COMPB_vect)
|
|||
#if (TEMP_BED_PIN > -1)
|
||||
#if TEMP_BED_PIN > 7
|
||||
ADCSRB = 1<<MUX5;
|
||||
#else
|
||||
ADCSRB = 0;
|
||||
#endif
|
||||
ADMUX = ((1 << REFS0) | (TEMP_BED_PIN & 0x07));
|
||||
ADCSRA |= 1<<ADSC; // Start conversion
|
||||
|
|
Loading…
Reference in a new issue