Skip to content

Commit

Permalink
Merge pull request johnrickman#5 from cmaglie/fix-write
Browse files Browse the repository at this point in the history
Fixed wrong return value for ::write() method
  • Loading branch information
marcoschwartz committed Nov 29, 2015
2 parents 24a5d3a + d843606 commit 5d01111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LiquidCrystal_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define printIIC(args) Wire.write(args)
inline size_t LiquidCrystal_I2C::write(uint8_t value) {
send(value, Rs);
return 0;
return 1;
}

#else
Expand Down Expand Up @@ -312,4 +312,4 @@ void LiquidCrystal_I2C::draw_horizontal_graph(uint8_t row, uint8_t column, uint8
void LiquidCrystal_I2C::draw_vertical_graph(uint8_t row, uint8_t column, uint8_t len, uint8_t pixel_row_end){}
void LiquidCrystal_I2C::setContrast(uint8_t new_val){}



2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LiquidCrystal I2C
version=1.1.1
version=1.1.2
author=Frank de Brabander
maintainer=Marco Schwartz <[email protected]>
sentence=A library for I2C LCD displays.
Expand Down

0 comments on commit 5d01111

Please sign in to comment.