This commit is contained in:
lmx
2025-12-09 11:16:49 +08:00
parent 96891516b8
commit 6ce9deebe6
4 changed files with 2 additions and 2 deletions

View File

@ -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;

Binary file not shown.

Binary file not shown.