mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 06:05:10 +00:00
bug: if user input obr_topic is sensor_gps_sate(wrong topic, which does not exist), the using of `strncmp` will assign idx=8 (as sesnor_gps) in the first. However, there is no match in the `g_sensor_list`, hence idx=8 will give out value of `sensor_gps` as output(wrong). Change: This update aims to match the whole value of sensor name in `g_sensor_list`, while keeping `sensor_name+number` match in this condition. Signed-off-by: haopengxiang <haopengxiang@xiaomi.com> |
||
|---|---|---|
| .. | ||
| sensor | ||
| test | ||
| uORB | ||
| Kconfig | ||
| listener.c | ||
| Make.defs | ||
| Makefile | ||