This commit is contained in:
2026-05-12 22:14:38 +00:00
parent 8c21c37b84
commit 54c178e3f5

View File

@@ -29,7 +29,7 @@ void lcd_close(struct lcd_t *lcd) {
}
void lcd_write(struct lcd_t *lcd, const uint8_t *cmdbuf, const uint8_t len) {
if (!write(lcd->fd, cmdbuf, len)) {
if (write(lcd->fd, cmdbuf, len) <= 0) {
applog(LOG_ERR, "failed to execute write(), lost access to port?");
lcd_open(lcd, true);
}