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:
parent
493e4fffc5
commit
43471c3110
1 changed files with 0 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue