testing/sensortest: Keep g_sensor_info in order

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-08-14 10:47:44 +08:00 committed by Petro Karashchenko
parent 3021b8d11e
commit 79e4c66764

View File

@ -79,37 +79,37 @@ static bool g_should_exit = false;
static const struct sensor_info g_sensor_info[] =
{
{print_vec3, sizeof(struct sensor_accel), "accel"},
{print_vec3, sizeof(struct sensor_mag), "mag"},
{print_vec3, sizeof(struct sensor_gyro), "gyro"},
{print_valf2, sizeof(struct sensor_baro), "baro"},
{print_valf, sizeof(struct sensor_light), "light"},
{print_valf, sizeof(struct sensor_prox), "prox"},
{print_valf, sizeof(struct sensor_humi), "humi"},
{print_valf, sizeof(struct sensor_temp), "temp"},
{print_valf3, sizeof(struct sensor_rgb), "rgb"},
{print_valb, sizeof(struct sensor_hall), "hall"},
{print_valf, sizeof(struct sensor_ir), "ir"},
{print_gps, sizeof(struct sensor_gps), "gps"},
{print_valf, sizeof(struct sensor_uv), "uv"},
{print_valf, sizeof(struct sensor_noise), "noise"},
{print_valf, sizeof(struct sensor_pm25), "pm25"},
{print_valf, sizeof(struct sensor_pm1p0), "pm1p0"},
{print_valf, sizeof(struct sensor_pm10), "pm10"},
{print_cap, sizeof(struct sensor_cap), "cap"},
{print_valf, sizeof(struct sensor_co2), "co2"},
{print_valf, sizeof(struct sensor_hcho), "hcho"},
{print_valf, sizeof(struct sensor_tvoc), "tvoc"},
{print_valf, sizeof(struct sensor_ph), "ph"},
{print_valf, sizeof(struct sensor_dust), "dust"},
{print_valf, sizeof(struct sensor_hrate), "hrate"},
{print_valf, sizeof(struct sensor_hbeat), "hbeat"},
{print_valf, sizeof(struct sensor_ecg), "ecg"},
{print_gps, sizeof(struct sensor_gps), "gps"},
{print_gps_satellite,
sizeof(struct sensor_gps_satellite), "gps_satellite"},
{print_vec3, sizeof(struct sensor_gyro), "gyro"},
{print_valb, sizeof(struct sensor_hall), "hall"},
{print_valf, sizeof(struct sensor_hbeat), "hbeat"},
{print_valf, sizeof(struct sensor_hcho), "hcho"},
{print_valf, sizeof(struct sensor_hrate), "hrate"},
{print_valf, sizeof(struct sensor_humi), "humi"},
{print_valf2, sizeof(struct sensor_impd), "impd"},
{print_valf, sizeof(struct sensor_ir), "ir"},
{print_valf, sizeof(struct sensor_light), "light"},
{print_vec3, sizeof(struct sensor_mag), "mag"},
{print_valf, sizeof(struct sensor_noise), "noise"},
{print_vali2, sizeof(struct sensor_ots), "ots"},
{print_valf, sizeof(struct sensor_ph), "ph"},
{print_valf, sizeof(struct sensor_pm10), "pm10"},
{print_valf, sizeof(struct sensor_pm1p0), "pm1p0"},
{print_valf, sizeof(struct sensor_pm25), "pm25"},
{print_ppgd, sizeof(struct sensor_ppgd), "ppgd"},
{print_ppgq, sizeof(struct sensor_ppgq), "ppgq"},
{print_valf2, sizeof(struct sensor_impd), "impd"},
{print_vali2, sizeof(struct sensor_ots), "ots"},
{print_cap, sizeof(struct sensor_cap), "cap"},
{print_gps_satellite, sizeof(struct sensor_gps_satellite),
"gps_satellite"}
{print_valf, sizeof(struct sensor_prox), "prox"},
{print_valf3, sizeof(struct sensor_rgb), "rgb"},
{print_valf, sizeof(struct sensor_temp), "temp"},
{print_valf, sizeof(struct sensor_tvoc), "tvoc"},
{print_valf, sizeof(struct sensor_uv), "uv"}
};
/****************************************************************************