mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-10 09:53:42 +00:00
fix examples/sd/main.go
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ func (c *CSD) CommandClasses() CommandClasses {
|
||||
}
|
||||
|
||||
// ReadBlockLen returns the Max Read Data Block Length in bytes.
|
||||
func (c *CSD) ReadBlockLen() int64 { return 1 << c.ReadBlockLenShift() }
|
||||
func (c *CSD) ReadBlockLen() int { return 1 << c.ReadBlockLenShift() }
|
||||
func (c *CSD) ReadBlockLenShift() uint8 { return c.data[5] & 0x0F }
|
||||
|
||||
// AllowsReadBlockPartial should always return true. Indicates that
|
||||
|
||||
Reference in New Issue
Block a user