Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
8.99k stars 5.17k forks source link

Fix initial rp2040 SPI transfers #6466

Closed KevinOConnor closed 5 months ago

KevinOConnor commented 5 months ago

The rp2040 code was not initializing the SCLK line prior to the first SPI transfer.

This issue is likely the cause of common reports of Invalid adxl345 id (got xx vs e5) error on the first (and only first) adxl345 query.

@Sineos, @buzztiaan - FYI.

-Kevin

Sineos commented 5 months ago

Tested and works 👍