diff --git a/apps/earphone/xtell_Sensor/sensor/BMP280.c b/apps/earphone/xtell_Sensor/sensor/BMP280.c index 5b418be..ddc9987 100644 --- a/apps/earphone/xtell_Sensor/sensor/BMP280.c +++ b/apps/earphone/xtell_Sensor/sensor/BMP280.c @@ -51,7 +51,7 @@ static uint8_t bmp280_read_regs(uint8_t reg, uint8_t *buf, uint16_t len) { * @return 补偿后的温度值 (单位: °C) */ static float compensate_temperature(int32_t adc_T) { - #if 0 + #if 1 float var1, var2, temperature; var1 = (((float)adc_T) / 16384.0f - ((float)t1) / 1024.0f) * ((float)t2); @@ -83,7 +83,7 @@ static float compensate_temperature(int32_t adc_T) { * @return 补偿后的气压值 (单位: Pa) */ static float compensate_pressure(int32_t adc_P) { -#if 0 +#if 1 float var1, var2, pressure; var1 = ((float)t_fine / 2.0f) - 64000.0f; diff --git a/cpu/br28/tools/app.bin b/cpu/br28/tools/app.bin index 93e7b9b..f00c3b8 100644 Binary files a/cpu/br28/tools/app.bin and b/cpu/br28/tools/app.bin differ diff --git a/cpu/br28/tools/data_code.bin b/cpu/br28/tools/data_code.bin index b74f21f..90e2e2d 100644 Binary files a/cpu/br28/tools/data_code.bin and b/cpu/br28/tools/data_code.bin differ diff --git a/cpu/br28/tools/download/earphone/jl_isd.bin b/cpu/br28/tools/download/earphone/jl_isd.bin index e75870f..b512fe8 100644 Binary files a/cpu/br28/tools/download/earphone/jl_isd.bin and b/cpu/br28/tools/download/earphone/jl_isd.bin differ