zhyinch
2021-10-12 51f61fd2e68abaecc07f2edd71e19a386e8c94c3
Src/ExternalDevices/dps368_test.c
@@ -148,8 +148,10 @@
    /*Instantiate driver state*/
  
   ret = dps310_get_processed_data(&drv_state,&pressure,&temperature);
    Height = 44330 * (1.0 - pow((pressure / 1013.25), (1 / 5.255)));
   
    Height = 44330 * (1.0 - pow((pressure / 1013.25), (1 / 5.255)));
    if(pressure==0)
      Height = 0;
   return Height;
   //height=PressToHeight(pressure,temperature);
   // printf("get_processed_data ret val = %d, pressure = %lf, temp = %lf\n",ret,pressure,temperature);