thotro / arduino-dw1000

A library that offers functionality to use Decawave's DW1000 chips/modules with Arduino.
Apache License 2.0
516 stars 288 forks source link

Library broken because of enableclock() in DW1000::begin() #12

Closed ankitbhatia closed 9 years ago

ankitbhatia commented 9 years ago

Hi,

This is something that needs to be fixed. The Enable clock function is trying to do SPI transfers before SPI begin.

This can be solved by moving the enable clock call after SPI.begin() and SPI.usingInterrupts().

Regards, Ankit

thotro commented 9 years ago

Hi Ankit,

oh, many thanks, will be fixed in the next commit!

Best, Thomas