Skip to content

Commit

Permalink
Remove unused field in adxl struct (#4262)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviamiller authored Aug 5, 2024
1 parent db54927 commit 43313de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/movementsensor/adxl345/adxl345.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ type adxl345 struct {
interruptsFound map[InterruptID]int
configuredRegisterValues map[byte]byte

// Used only to remove the callbacks from the interrupts upon closing component.
interruptChannels map[board.DigitalInterrupt]chan board.Tick

// Lock the mutex when you want to read or write either the acceleration or the last error.
mu sync.Mutex
linearAcceleration r3.Vector
Expand Down Expand Up @@ -235,7 +232,6 @@ func makeAdxl345(
logger: logger,
configuredRegisterValues: configuredRegisterValues,
interruptsFound: make(map[InterruptID]int),
interruptChannels: make(map[board.DigitalInterrupt]chan board.Tick),

// On overloaded boards, sometimes the I2C bus can be flaky. Only report errors if at least
// 5 of the last 10 times we've tried interacting with the device have had problems.
Expand Down

0 comments on commit 43313de

Please sign in to comment.