bmp085: remove duplicate code

A copy and paste error caused a few lines of code to be duplicated.
This patch removes the excess code.

Change-Id: I7313efb537e2a4102fb25ce05782e82ae0c84285
This commit is contained in:
Thomas Cort 2013-09-15 19:56:48 -04:00
parent 493e4fffc5
commit 43471c3110

View file

@ -515,14 +515,6 @@ measure(int32_t * temperature, int32_t * pressure)
log_debug(&log, "Triggering Temp Reading...\n");
/* trigger temperature reading */
r = reg_write(CTRL_REG, CMD_TRIG_T);
if (r != OK) {
log_warn(&log, "Failed to trigger temperature reading.\n");
return -1;
}
micro_delay(UDELAY_T);
/* trigger temperature reading */
r = reg_write(CTRL_REG, CMD_TRIG_T);
if (r != OK) {