Bob Kuhn
пре 5 година
No account linked to committer's email address
|
@@ -20,3 +20,8 @@
|
20
|
20
|
*
|
21
|
21
|
*/
|
22
|
22
|
#pragma once
|
|
23
|
+
|
|
24
|
+#if ENABLED(USE_USB_COMPOSITE)
|
|
25
|
+ //#warning "SD_CHECK_AND_RETRY isn't needed with USE_USB_COMPOSITE."
|
|
26
|
+ #undef SD_CHECK_AND_RETRY
|
|
27
|
+#endif
|
|
@@ -575,7 +575,7 @@ bool Sd2Card::writeData(const uint8_t* src) {
|
575
|
575
|
// Send one block of data for write block or write multiple blocks
|
576
|
576
|
bool Sd2Card::writeData(const uint8_t token, const uint8_t* src) {
|
577
|
577
|
|
578
|
|
- uint16_t crc =
|
|
578
|
+ const uint16_t crc =
|
579
|
579
|
#if ENABLED(SD_CHECK_AND_RETRY)
|
580
|
580
|
CRC_CCITT(src, 512)
|
581
|
581
|
#else
|