projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Record MPU6000 failure but let device boot
[fw/altos]
/
src
/
drivers
/
ao_mmc5983.c
diff --git
a/src/drivers/ao_mmc5983.c
b/src/drivers/ao_mmc5983.c
index 81bf8f2ba9f50c4c64cf629c4f74c9d122760833..7160ea1a2cf248150b77ef155104cb85a6aceddc 100644
(file)
--- a/
src/drivers/ao_mmc5983.c
+++ b/
src/drivers/ao_mmc5983.c
@@
-89,11
+89,11
@@
ao_mmc5983_sample(struct ao_mmc5983_sample *sample)
sample->z = raw.z0 << 10 | raw.z1 << 2 | ((raw.xyz2 >> 2) & 3);
}
sample->z = raw.z0 << 10 | raw.z1 << 2 | ((raw.xyz2 >> 2) & 3);
}
+static uint8_t product_id;
+
static uint8_t
ao_mmc5983_setup(void)
{
static uint8_t
ao_mmc5983_setup(void)
{
- uint8_t product_id;
-
if (ao_mmc5983_configured)
return 1;
if (ao_mmc5983_configured)
return 1;
@@
-143,8
+143,8
@@
static struct ao_task ao_mmc5983_task;
static void
ao_mmc5983_show(void)
{
static void
ao_mmc5983_show(void)
{
- printf ("X: %d Z: %d Y: %d\n",
- ao_mmc5983_current.x, ao_mmc5983_current.z, ao_mmc5983_current.y);
+ printf ("X: %d Z: %d Y: %d
id %d
\n",
+ ao_mmc5983_current.x, ao_mmc5983_current.z, ao_mmc5983_current.y
, product_id
);
}
static const struct ao_cmds ao_mmc5983_cmds[] = {
}
static const struct ao_cmds ao_mmc5983_cmds[] = {