From 8bea9be55127e36b1cc418d7a06379016f193fa1 Mon Sep 17 00:00:00 2001 From: Drath Date: Sun, 14 Jun 2026 11:54:50 +0200 Subject: [PATCH] we might send more than 255 bytes at a time, hint hint --- src/lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lcd.c b/src/lcd.c index 912843c..0accaec 100644 --- a/src/lcd.c +++ b/src/lcd.c @@ -28,7 +28,7 @@ void lcd_close(struct lcd_t *lcd) { lcd->fd = -1; } -void lcd_write(struct lcd_t *lcd, const uint8_t *cmdbuf, const uint8_t len) { +void lcd_write(struct lcd_t *lcd, const uint8_t *cmdbuf, const uint16_t len) { applog(LOG_INF, "wrote %d bytes", len); if (write(lcd->fd, cmdbuf, len) <= 0) { applog(LOG_ERR, "failed to execute write(), lost access to port?");