Skip to content

Commit 9cd18a2

Browse files
raiden00plxiaoxiang781216
authored andcommitted
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 <raiden00@railab.me>
1 parent 2a74ba2 commit 9cd18a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎system/sensortest/sensortest.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static bool g_should_exit = false;
9595
static const struct sensor_info g_sensor_info[] =
9696
{
9797
{print_vec3, sizeof(struct sensor_accel), "accel"},
98+
{print_valf, sizeof(struct sensor_temp), "ambient_temp"},
9899
{print_valf2, sizeof(struct sensor_baro), "baro"},
99100
{print_cap, sizeof(struct sensor_cap), "cap"},
100101
{print_valf, sizeof(struct sensor_co2), "co2"},

0 commit comments

Comments
 (0)