Update msm_thermal.c

Fix wrong variabke