Browse Source
We need to check the AK8963's id before anything else Here we are reordering the calls to _calibrate() and _check_id(). After that we don't need to read and write again the AK8963_CNTL1 register. While at it do some renames as well: - _configure() -> _setup_mode(): since now there's a _bus->configure() it became confusing what actually it's doing. - make error messages say what we were actually trying to do but couldn't. Also remove PSTR since this is linux-only. - start_conversion() -> start_measurements(): We are instructing the bus to start to get the samples, not to tell the chip to start an analog->digital conversion like in other sensors.master
Lucas De Marchi
10 years ago
committed by
Andrew Tridgell
2 changed files with 21 additions and 25 deletions
Loading…
Reference in new issue