From 2259bacd67c5ebb2a6029db737705edeac95ec13 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 13 Nov 2011 20:10:54 +1100 Subject: [PATCH] barometer: fixed for purple build --- libraries/APM_BMP085/APM_BMP085.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/APM_BMP085/APM_BMP085.cpp b/libraries/APM_BMP085/APM_BMP085.cpp index 81dcc09c3b..ecb449a472 100644 --- a/libraries/APM_BMP085/APM_BMP085.cpp +++ b/libraries/APM_BMP085/APM_BMP085.cpp @@ -154,13 +154,13 @@ uint8_t APM_BMP085_Class::Read() uint8_t result = 0; if (BMP085_State == 1){ - if (digitalRead(BMP085_EOC)){ + if (BMP_DATA_READY()){ BMP085_State = 2; ReadTemp(); // On state 1 we read temp Command_ReadPress(); } }else{ - if (digitalRead(BMP085_EOC)){ + if (BMP_DATA_READY()){ BMP085_State = 1; // Start again from state = 1 ReadPress(); Calculate();