This commit is contained in:
2026-06-16 10:31:09 +02:00
parent 2a75c9eb24
commit b46f457afc

View File

@@ -12,7 +12,7 @@
int lcd_open(struct lcd_t *lcd, const bool reopen) {
applog(LOG_INF, "Opening serial port at %s", lcd->port);
if (lcd->fd <= 0 || reopen)
lcd->fd = open(lcd->port, O_RDWR | O_NOCTTY | O_NONBLOCK);
lcd->fd = open(lcd->port, O_RDWR | O_NOCTTY);
if (lcd->fd <= 0) {
applog(LOG_ERR, "Error opening serial port %s", lcd->port); // err
return -1;