Skip to content

Commit 67bd70e

Browse files
author
Richard Unger
committed
make SC60228 work on Atmega
1 parent a9a82dd commit 67bd70e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/encoders/sc60228/SC60228.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ uint16_t SC60228::spi_transfer16(uint16_t outdata){
4444
if (nCS>=0)
4545
digitalWrite(nCS, LOW);
4646
// min delay here: 250ns
47+
spi->beginTransaction(settings);
4748
result = spi->transfer16(outdata);
4849
// min delay here: clock period / 2
50+
spi->endTransaction();
4951
if (nCS>=0)
5052
digitalWrite(nCS, HIGH);
5153
// min delay until next read: 250ns

0 commit comments

Comments
 (0)