kopia lustrzana https://github.com/tasanakorn/rpi-fbcp
open returns -1 on failure
rodzic
9689a3b4e2
commit
a749e21e73
2
main.c
2
main.c
|
@ -38,7 +38,7 @@ int process() {
|
|||
|
||||
|
||||
fbfd = open("/dev/fb1", O_RDWR);
|
||||
if (!fbfd) {
|
||||
if (fbfd == -1) {
|
||||
syslog(LOG_ERR, "Unable to open secondary display");
|
||||
return -1;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue