This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1e7532c3817a0e1737ac3634c4cbcf703c132e60
Author: JianyuWang <140773670+jianyuwang0...@users.noreply.github.com>
AuthorDate: Tue Feb 11 17:12:42 2025 +0800

    drivers/thermal: Break loop if matching active trip point
    
    Co-authored-by: Donny(董九柱) <70748590+don...@users.noreply.github.com>
---
 drivers/thermal/thermal_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index d7c57442da..74d3e349a2 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -912,6 +912,7 @@ void thermal_zone_device_update(FAR struct 
thermal_zone_device_s *zdev)
           (pos->target != 0 && pos->target != THERMAL_NO_TARGET))
         {
           delay = zdev->params->polling_delay;
+          break;
         }
     }
 

Reply via email to