Calculating corrected Altitude from Pressure & Temperature using Teensy 3.2, BME280, and library from farmerkeith

const float seaLevelhPa 1013.15;

Needs an = ‘equal sign’ to assign the value to seaLevelhPa

The #define simply performs text replacement at compile time… which works in this case.

1 Like