Skip to content

Commit

Permalink
small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed Apr 18, 2017
1 parent 16a194e commit 38956de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devices/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Device interface {
// Unlike a connection, a device cannot be closed, only the port can be
// closed. On the other hand, a device can be halted. What halting entails
// depends on the actual device but it should stop motion, sensing or light
// emition.
// emission.
Halt() error
}

Expand Down
2 changes: 1 addition & 1 deletion devices/lepton/lepton.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type Dev struct {
//
// MOSI is not used and should be grounded.
func New(s spi.Conn, i i2c.Bus, cs gpio.PinOut) (*Dev, error) {
// Sadly the Lepton will inconditionally send 27fps, even if the effective
// Sadly the Lepton will unconditionally send 27fps, even if the effective
// rate is 9fps.
mode := spi.Mode3
if cs == nil {
Expand Down
4 changes: 2 additions & 2 deletions host/bcm283x/dma.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ func (c *controlBlock) initBlock(srcAddr, dstAddr, l uint32, srcIO, dstIO bool,

func (c *controlBlock) GoString() string {
return fmt.Sprintf(
"{\n transferInfo: %s,\n srcAddr: 0x%x,\n dstAddr: 0x%x,\n txLen: %d,\n stride: %#s,\n nextCB: 0x%x,\n}",
c.transferInfo, c.srcAddr, c.dstAddr, c.txLen, c.stride, c.nextCB)
"{\n transferInfo: %s,\n srcAddr: 0x%x,\n dstAddr: 0x%x,\n txLen: %d,\n stride: %s,\n nextCB: 0x%x,\n}",
&c.transferInfo, c.srcAddr, c.dstAddr, c.txLen, &c.stride, c.nextCB)
}

// DMAChannel is the memory mapped registers for one DMA channel.
Expand Down
2 changes: 1 addition & 1 deletion host/videocore/videocore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestClose(t *testing.T) {
mailbox = &dummy{}
m := Mem{View: &pmem.View{}}
if m.Close() == nil {
t.Fatal("can't close uninitalized pmem.View")
t.Fatal("can't close uninitialized pmem.View")
}
}

Expand Down

0 comments on commit 38956de

Please sign in to comment.