mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
missed a return of result
This commit is contained in:
parent
b2482b0e43
commit
1e1268f84b
@ -127,14 +127,12 @@ int SMBus::block_write(const uint8_t cmd_code, void *data, uint8_t byte_count, b
|
||||
|
||||
if (i == 10) {
|
||||
PX4_WARN("Block_write failed 10 times");
|
||||
result = -ENODATA;
|
||||
}
|
||||
|
||||
} else {
|
||||
return PX4_OK;
|
||||
}
|
||||
}
|
||||
|
||||
return PX4_ERROR;
|
||||
return result;
|
||||
}
|
||||
|
||||
uint8_t SMBus::get_pec(uint8_t *buff, const uint8_t len)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user