Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SoC temperature sensor #25642

Prev Previous commit
Next Next commit
Add missing update temp
  • Loading branch information
GMagician committed Apr 7, 2023
commit 495cd2ddd91ff767b05fd86435db6ac28d1a8c88
3 changes: 2 additions & 1 deletion Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED);
#endif

#if HAS_TEMP_SOC
board_info_t Temperature::temp_soc; // = { 0 }
soc_info_t Temperature::temp_soc; // = { 0 }
raw_adc_t Temperature::maxtemp_raw_SOC = TEMP_SENSOR_SOC_RAW_HI_TEMP;
#endif

Expand Down Expand Up @@ -3362,6 +3362,7 @@ void Temperature::update_raw_temperatures() {
TERN_(HAS_TEMP_ADC_PROBE, temp_probe.update());
TERN_(HAS_TEMP_ADC_COOLER, temp_cooler.update());
TERN_(HAS_TEMP_ADC_BOARD, temp_board.update());
TERN_(HAS_TEMP_ADC_SOC, temp_soc.update());

TERN_(HAS_JOY_ADC_X, joystick.x.update());
TERN_(HAS_JOY_ADC_Y, joystick.y.update());
Expand Down