lsm303d: make log distinctive with i2c disable included

This commit is contained in:
Andrew Tridgell 2013-12-04 12:06:05 +11:00 committed by Lorenz Meier
parent 51a1ad48c5
commit c46ab017e1
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ LSM303D::check_extremes(const accel_report *arb)
(is_extreme && (now - _last_log_reg_us > 250*1000)) ||
(now - _last_log_reg_us > 10*1000*1000)) {
_last_log_reg_us = now;
::dprintf(_accel_log_fd, "REG %llu", (unsigned long long)hrt_absolute_time());
::dprintf(_accel_log_fd, "XREG %llu", (unsigned long long)hrt_absolute_time());
for (uint8_t i=0; i<sizeof(reglist); i++) {
::dprintf(_accel_log_fd, " %02x:%02x", (unsigned)reglist[i], (unsigned)regval[i]);
}