結果 : temperature switch function