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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9cd18a2d6 system/sensortest: Add the ambient_temp topic.
9cd18a2d6 is described below

commit 9cd18a2d63d9e46cb05ea022c41ffd84c9e69770
Author: raiden00pl <[email protected]>
AuthorDate: Sat Nov 21 11:40:32 2026 +0100

    system/sensortest: Add the ambient_temp topic.
    
    NuttX registers ambient temperature sensors, such as the HTS221, as
    sensor_ambient_temp<n> with struct sensor_temp, but sensortest rejected
    that node name.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 system/sensortest/sensortest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/sensortest/sensortest.c b/system/sensortest/sensortest.c
index f560b415e..5b42d2e6a 100644
--- a/system/sensortest/sensortest.c
+++ b/system/sensortest/sensortest.c
@@ -95,6 +95,7 @@ static bool g_should_exit = false;
 static const struct sensor_info g_sensor_info[] =
 {
   {print_vec3,  sizeof(struct sensor_accel), "accel"},
+  {print_valf,  sizeof(struct sensor_temp),  "ambient_temp"},
   {print_valf2, sizeof(struct sensor_baro),  "baro"},
   {print_cap,   sizeof(struct sensor_cap),   "cap"},
   {print_valf,  sizeof(struct sensor_co2),   "co2"},

Reply via email to