bdedf648c5
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> |
||
---|---|---|
.. | ||
accel.c | ||
accel.h | ||
baro.c | ||
baro.h | ||
cap.c | ||
cap.h | ||
co2.c | ||
co2.h | ||
dust.c | ||
dust.h | ||
ecg.c | ||
ecg.h | ||
gesture.c | ||
gesture.h | ||
gps.c | ||
gps.h | ||
gyro.c | ||
gyro.h | ||
hall.c | ||
hall.h | ||
hbeat.c | ||
hbeat.h | ||
hcho.c | ||
hcho.h | ||
hrate.c | ||
hrate.h | ||
humi.c | ||
humi.h | ||
impd.c | ||
impd.h | ||
ir.c | ||
ir.h | ||
light.c | ||
light.h | ||
mag.c | ||
mag.h | ||
noise.c | ||
noise.h | ||
ots.c | ||
ots.h | ||
ph.c | ||
ph.h | ||
pm1p0.c | ||
pm1p0.h | ||
pm10.c | ||
pm10.h | ||
pm25.c | ||
pm25.h | ||
ppgd.c | ||
ppgd.h | ||
ppgq.c | ||
ppgq.h | ||
prox.c | ||
prox.h | ||
rgb.c | ||
rgb.h | ||
temp.c | ||
temp.h | ||
topics.c | ||
tvoc.c | ||
tvoc.h | ||
uv.c | ||
uv.h |