mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
batt_smbus: remove debug
This commit is contained in:
@@ -452,10 +452,7 @@ BATT_SMBUS::read_block(uint8_t reg, uint8_t *data, uint8_t max_len, bool append_
|
|||||||
uint8_t pec = get_PEC(reg, true, buff, bufflen + 1);
|
uint8_t pec = get_PEC(reg, true, buff, bufflen + 1);
|
||||||
|
|
||||||
if (pec != buff[bufflen + 1]) {
|
if (pec != buff[bufflen + 1]) {
|
||||||
// debug
|
|
||||||
warnx("CurrPEC:%x vs MyPec:%x", (int)buff[bufflen + 1], (int)pec);
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy data
|
// copy data
|
||||||
|
|||||||
Reference in New Issue
Block a user