Refactoring of BMP180.c