mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-06 07:53:41 +00:00
passing tests
This commit is contained in:
+4
-1
@@ -41,7 +41,10 @@ func main() {
|
||||
cid := sdcard.CID()
|
||||
pname := cid.ProductName()
|
||||
csd := sdcard.CSD()
|
||||
|
||||
if !cid.IsValid() {
|
||||
copy := cid.RawCopy()
|
||||
println("CID not valid: theirCRC=", cid.CRC7(), "ourCRC=", sd.CRC7(copy[:15]))
|
||||
}
|
||||
valid := csd.IsValid()
|
||||
if !valid {
|
||||
data := csd.RawCopy()
|
||||
|
||||
Reference in New Issue
Block a user