samples: sensor: pressure_polling: Log altitude only if supported
Most pressure sensors provide temperature and pressure data, but only a
few support altitude readings. This change adds a check to ensure
altitude is logged only when the sensor supports it.
Signed-off-by:
Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
Loading
Please sign in to comment