Merge pull request #3393 from luhuadong/develop

[Sensor] Modified vendor name and add two prefix corresponding to sensor types
This commit is contained in:
Bernard Xiong 2020-02-20 18:56:02 +08:00 committed by GitHub
commit 4bec714516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ static char *const sensor_name_str[] =
"tvoc_", /* TVOC Level */
"noi_", /* Noise Loudness */
"step_", /* Step sensor */
"forc_" /* Force sensor */
"forc_", /* Force sensor */
"dust_", /* Dust sensor */
"eco2_" /* eCO2 sensor */
};
/* Sensor interrupt correlation function */

View File

@ -58,7 +58,7 @@ extern "C" {
#define RT_SENSOR_VENDOR_GOERTEK (5) /* Goertek */
#define RT_SENSOR_VENDOR_MIRAMEMS (6) /* MiraMEMS */
#define RT_SENSOR_VENDOR_DALLAS (7) /* Dallas */
#define RT_SENSOR_VENDOR_AOSONG (8) /* Aosong */
#define RT_SENSOR_VENDOR_ASAIR (8) /* Aosong */
#define RT_SENSOR_VENDOR_SHARP (9) /* Sharp */
#define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */