X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fbarometer.c;h=aaedd70afd075a51293b354c7a792a5f3e81d7ec;hb=22b9f5441f0bb294e16aa27169d02eb69e32d556;hp=84ffdfcb0db74113b8bd18a4ae611df11c858834;hpb=0a63e4493d92f7d739a1849bc65d4e971b047004;p=collectd.git diff --git a/src/barometer.c b/src/barometer.c index 84ffdfcb..aaedd70a 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -1363,7 +1363,7 @@ static int BMP085_read(double * pressure, double * temperature) * * @return detected sensor type */ -enum Sensor_type Detect_sensor_type(void) +static enum Sensor_type detect_sensor_type(void) { if(BMP085_detect()) return Sensor_BMP085; @@ -1805,7 +1805,7 @@ static int collectd_barometer_init (void) } /* detect sensor type - this will also set slave address */ - sensor_type = Detect_sensor_type(); + sensor_type = detect_sensor_type(); /* init correct sensor type */ switch(sensor_type)