bool lps25hSelfTest(void)
{
  float pressure;
  float temperature;
  float asl;

  if (!isInit)
    return false;

  lps25hGetData(&pressure, &temperature, &asl);

  if (lps25hEvaluateSelfTest(LPS25H_ST_PRESS_MIN, LPS25H_ST_PRESS_MAX, pressure, "pressure") &&
      lps25hEvaluateSelfTest(LPS25H_ST_TEMP_MIN, LPS25H_ST_TEMP_MAX, temperature, "temperature"))
  {
    return true;
  }
  else
  {
   return false;
  }
}
bool lps25hSelfTest(void)
{
    bool testStatus = true;
    float pressure;
    float temperature;
    float asl;

    if (!isInit)
        return false;

    lps25hGetData(&pressure, &temperature, &asl);

    if (lps25hEvaluateSelfTest(LPS25H_ST_PRESS_MIN, LPS25H_ST_PRESS_MAX, pressure, "pressure") &&
            lps25hEvaluateSelfTest(LPS25H_ST_TEMP_MIN, LPS25H_ST_TEMP_MAX, temperature, "temperature"))
    {
        DEBUG_PRINT("Self test [OK].\n");
    }
    else
    {
        testStatus = false;
    }

    return testStatus;
}