A copy and paste error caused a few lines of code to be duplicated.
This patch removes the excess code.
Change-Id: I7313efb537e2a4102fb25ce05782e82ae0c84285
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) {