diff options
author | Andrew Tridgell <andrew@tridgell.net> | 2015-01-01 08:45:51 +1100 |
---|---|---|
committer | Andrew Tridgell <andrew@tridgell.net> | 2015-01-01 08:51:49 +1100 |
commit | 1de7fab974b21afdc43caaeb6c8ecdf2ac88cc10 (patch) | |
tree | 2b50eabf2c9f811abf398c781b46a1f15a808319 /src/drivers/lsm303d/lsm303d.cpp | |
parent | e4318345f3a105ac769f93f09f6e11cfb7aa0072 (diff) | |
download | px4-firmware-1de7fab974b21afdc43caaeb6c8ecdf2ac88cc10.tar.gz px4-firmware-1de7fab974b21afdc43caaeb6c8ecdf2ac88cc10.tar.bz2 px4-firmware-1de7fab974b21afdc43caaeb6c8ecdf2ac88cc10.zip |
lsm303d: removed unsafe printf in interrupt context
Diffstat (limited to 'src/drivers/lsm303d/lsm303d.cpp')
-rw-r--r-- | src/drivers/lsm303d/lsm303d.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp index ace228920..58dcdf410 100644 --- a/src/drivers/lsm303d/lsm303d.cpp +++ b/src/drivers/lsm303d/lsm303d.cpp @@ -1429,14 +1429,6 @@ LSM303D::check_registers(void) if (_checked_next != 0) { write_reg(_checked_registers[_checked_next], _checked_values[_checked_next]); } -#if 1 - if (_register_wait == 0) { - ::printf("LSM303D: %02x:%02x should be %02x\n", - (unsigned)_checked_registers[_checked_next], - (unsigned)v, - (unsigned)_checked_values[_checked_next]); - } -#endif _register_wait = 20; } _checked_next = (_checked_next+1) % LSM303D_NUM_CHECKED_REGISTERS; |