Skip to content

Commit

Permalink
Remove unnecessary i2c_lcd1602 write (fixes DavidAntliff#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecyca committed Jul 5, 2024
1 parent 0a209d3 commit 6ebed54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions i2c-lcd1602.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ static esp_err_t _strobe_enable(const i2c_lcd1602_info_t * i2c_lcd1602_info, uin
static esp_err_t _write_bot_nibble(const i2c_lcd1602_info_t * i2c_lcd1602_info, uint8_t data)
{
ESP_LOGD(TAG, "_write_bot_nibble 0x%02x", data);
esp_err_t err1 = _write_to_expander(i2c_lcd1602_info, data);
esp_err_t err2 = _strobe_enable(i2c_lcd1602_info, data);
return err1 ? err1 : err2;
return _strobe_enable(i2c_lcd1602_info, data);
}

// send command or data to controller
Expand Down

0 comments on commit 6ebed54

Please sign in to comment.