Skip to content

Commit

Permalink
add todo note
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Nov 7, 2023
1 parent 57f3a91 commit 00aa54c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/puckjs/jswrap_puck.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ bool accel_on(int milliHz) {
// Read a value
void accel_read() {
unsigned char buf[12];
// FIXME: If just the accelerometer is on, we could avoid reading the gyro and read only 6 bytes
buf[0] = 0x22; // OUTX_L_G
jsi2cWrite(&i2cAccel, ACCEL_ADDR, 1, buf, false);
jsi2cRead(&i2cAccel, ACCEL_ADDR, 12, buf, true);
Expand Down

0 comments on commit 00aa54c

Please sign in to comment.