diff --git a/Examples/MS5611/SPIReadPressure/Sources/SPIReadPressure/SPIReadPressure.swift b/Examples/MS5611/SPIReadPressure/Sources/SPIReadPressure/SPIReadPressure.swift index 695065c..e74658f 100644 --- a/Examples/MS5611/SPIReadPressure/Sources/SPIReadPressure/SPIReadPressure.swift +++ b/Examples/MS5611/SPIReadPressure/Sources/SPIReadPressure/SPIReadPressure.swift @@ -17,8 +17,11 @@ public struct SPIReadPressure { // let sensor = MS5611(spi) while true { - let value = sensor.read() - print(getFloatString(value)) + let (temperature, pressure) = sensor.read() + + print("Temperature: " + getFloatString(temperature)) + print("Pressure: " + getFloatString(pressure)) + print(" ") sleep(ms: 1000) } }