Skip to content

Commit 1e8611d

Browse files
authored
Merge pull request #237 from shilga/fix_spi_comm
Fix SPI communication after #222 broke it
2 parents 8dd8acb + 950807a commit 1e8611d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sdcard/spi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ where
475475
arg as u8,
476476
0,
477477
];
478-
buf[5] = crc7(&buf[0..5]);
478+
buf[5] = (crc7(&buf[0..5]) << 1) | 1;
479479

480480
self.write_bytes(&buf)?;
481481

@@ -503,7 +503,7 @@ where
503503
arg as u8,
504504
0,
505505
];
506-
buf[5] = crc7(&buf[0..5]);
506+
buf[5] = (crc7(&buf[0..5]) << 1) | 1;
507507

508508
self.write_bytes(&buf)?;
509509

0 commit comments

Comments
 (0)