Skip to content

Commit

Permalink
fix the bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed Jul 12, 2015
1 parent 6190def commit 6cef217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platforms/i2c/jhd1313m1_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ func (h *JHD1313M1Driver) Write(message string) error {
if err := h.SetPosition(16); err != nil {
return err
}
continue
}
if err = h.connection.I2cWrite(h.lcdAddress, []byte{LCD_DATA, byte(val)}); err != nil {
break
if err := h.connection.I2cWrite(h.lcdAddress, []byte{LCD_DATA, byte(val)}); err != nil {
return err
}
}
return nil
Expand All @@ -179,8 +180,7 @@ func (h *JHD1313M1Driver) SetPosition(pos int) (err error) {
return
}

func (h *JHD1313M1Driver) Halt() (errs []error) { return }

func (h *JHD1313M1Driver) Scroll(leftToRight bool) error {
if leftToRight {
return h.connection.I2cWrite(h.rgbAddress, []byte{LCD_CMD, LCD_CURSORSHIFT | LCD_DISPLAYMOVE | LCD_MOVELEFT})
}
Expand Down

0 comments on commit 6cef217

Please sign in to comment.