bug?
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user