Correct bmp180 setup return value when disabled

This commit is contained in:
Mathieu Maret 2016-06-18 01:47:35 +02:00
parent 0c3ced5a7f
commit ae77a7a8ee
1 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,6 @@ bool BMP180IsConnected();
#else //CONFIG_ENABLE_BMP80
int BMP180GetTemperature(double &t){return -1;};
int BMP180GetTempAndPressure(double &t, double &p){return -1;};
int BMP180Setup(int , int ){SKETCH_DEBUG_PRINTLN("BMP180 is disabled at build time"); return 0;};
int BMP180Setup(int , int ){SKETCH_DEBUG_PRINTLN("BMP180 is disabled at build time"); return -1;};
bool BMP180IsConnected(){return false;};
#endif