1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-08 19:29:16 +08:00

Merge pull request #450 from akumbhani66/master

Fixed typo.
This commit is contained in:
Ron Evans 2017-09-24 23:01:40 +02:00 committed by GitHub
commit 50c3d42809
5 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ func (c *CORS) isOriginAllowed(origin string) (allowed bool) {
return
}
// generatePatterns generates regex expresions for AllowOrigins
// generatePatterns generates regex expression for AllowOrigins
func (c *CORS) generatePatterns() {
if c.AllowOrigins != nil {
for _, origin := range c.AllowOrigins {

View File

@ -97,7 +97,7 @@ func (s *DisplayBuffer) Clear() {
s.buffer = make([]byte, s.Size())
}
// Set sets the x, y pixel witn c color
// Set sets the x, y pixel with c color
func (s *DisplayBuffer) Set(x, y, c int) {
idx := x + (y/ssd1306PageSize)*s.Width
bit := uint(y) % ssd1306PageSize

View File

@ -135,7 +135,7 @@ func TestWiichuckDriverCButton(t *testing.T) {
select {
case <-done:
case <-time.After(10 * time.Second):
t.Errorf("Did not recieve 'C' event")
t.Errorf("Did not receive 'C' event")
}
}
@ -158,7 +158,7 @@ func TestWiichuckDriverZButton(t *testing.T) {
select {
case <-done:
case <-time.After(10 * time.Second):
t.Errorf("Did not recieve 'Z' event")
t.Errorf("Did not receive 'Z' event")
}
}
@ -186,7 +186,7 @@ func TestWiichuckDriverUpdateJoystick(t *testing.T) {
select {
case <-done:
case <-time.After(10 * time.Second):
t.Errorf("Did not recieve 'Joystick' event")
t.Errorf("Did not receive 'Joystick' event")
}
}

View File

@ -1,6 +1,6 @@
package gobot
// Event represents when something asyncronous happens in a Driver
// Event represents when something asynchronous happens in a Driver
// or Adaptor
type Event struct {
Name string

View File

@ -13,7 +13,7 @@
then in a separate terminal run this program:
$ go run video.go
You will then be able to view the video feed by navigatin to
You will then be able to view the video feed by navigation to
http://localhost:8090/bebop.mjpeg in a web browser. *NOTE* firefox works
best for viewing the video feed.
*/