 
 ////////////////////////////////////////////////////
 //
-// pascals_to_mbar convert from pascals to mbar
-//
-float pascals_to_mbar(float pascals) {
-  return (pascals / 100.0);
+// hpascals_to_mbar convert from pascals to mbar
+//
+float hpascals_to_mbar(float hpascals) {
+  return hpascals / 100.0;
 }
 
 ////////////////////////////////////////////////////

#if SENSOR == USING_BME
  display.setCursor(18, 48);
  display.print("Pres: ");
  display.print(hpascals_to_inhg(pressure));
  display.println("inHg");

#endif // BME

#if SENSOR == USING_BMP
  display.setCursor(18, 48);
  display.print("Pres: ");
  display.print(hpascals_to_inhg(pressure));
  display.println("inHg");

#endif // BMP


#endif // USING_WIRELESS
#endif // USE_ESP
   }
}
