aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-11-11 15:47:18 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-11-11 15:47:18 +0100
commit687cbe536f8f50908c0784cf5f54b4ba09055ea5 (patch)
treebe707e05f0e31a644940b3a90d573db5c5f2c406
parente28544863a991dc6c9d7bd25351096c905759c97 (diff)
downloadhourglass-687cbe536f8f50908c0784cf5f54b4ba09055ea5.tar.gz
hourglass-687cbe536f8f50908c0784cf5f54b4ba09055ea5.tar.bz2
hourglass-687cbe536f8f50908c0784cf5f54b4ba09055ea5.zip
ui: Fix debug messages
-rw-r--r--ui.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ui.c b/ui.c
index 408724f..8e22505 100644
--- a/ui.c
+++ b/ui.c
@@ -394,13 +394,10 @@ void uiLoop () {
#if 0
printf ("t=%i, h=%i, s=%i\n", gyroGetZTicks (), accelGetHorizon (),
accelGetShakeCount ());
- volatile const int32_t *gyroval = gyroGetAccum ();
- volatile const int16_t *gyroraw = gyroGetRaw ();
- volatile const int8_t *accelval = accelGet ();
- printf ("%li/%li/%li - %i/%i/%i - %i/%i/%i\n",
- gyroval[0], gyroval[1], gyroval[2],
- gyroraw[0], gyroraw[1], gyroraw[2],
- accelval[1], accelval[3], accelval[5]);
+ const int32_t gyroval = gyroGetZAccum ();
+ const int16_t gyroraw = gyroGetZRaw ();
+ const int8_t accelval = accelGetZ ();
+ printf ("%li - %i - %i\n", gyroval, gyroraw, accelval);
#endif
}