Skip to content

Commit

Permalink
vuduo2] update bootlogo.py fix ValueError: must have exactly one of c…
Browse files Browse the repository at this point in the history
…reate/read/write/append mode
  • Loading branch information
Captain committed Jan 6, 2022
1 parent 7878187 commit 1f9757d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion meta-oe/recipes-distros/openatv/bootlogo/files/bootlogo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
if os.path.exists('/dev/lcd2') and os.path.exists('/usr/share/lcdbootlogo.png'): # VuDuo2 lcd
from fcntl import ioctl
led_fd = open("/dev/lcd2", 'rw')
led_fd = open("/dev/lcd2", 'w')
ioctl(led_fd, 0x10, 25)
led_fd.close()

Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-distros/openbh/bootlogo/files/bootlogo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
if os.path.exists('/dev/lcd2') and os.path.exists('/usr/share/lcdbootlogo.png'): # VuDuo2 lcd
from fcntl import ioctl
led_fd = open("/dev/lcd2", 'rw')
led_fd = open("/dev/lcd2", 'w')
ioctl(led_fd, 0x10, 25)
led_fd.close()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
if os.path.exists('/dev/lcd2') and os.path.exists('/usr/share/lcdbootlogo.png'): # VuDuo2 lcd
from fcntl import ioctl
led_fd = open("/dev/lcd2",'rw')
led_fd = open("/dev/lcd2",'w')
ioctl(led_fd, 0x10, 25)
led_fd.close()

Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-distros/opennfr/bootlogo/files/bootlogo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
if os.path.exists('/dev/lcd2') and os.path.exists('/usr/share/lcdbootlogo.png'): # VuDuo2 lcd
from fcntl import ioctl
led_fd = open("/dev/lcd2", 'rw')
led_fd = open("/dev/lcd2", 'w')
ioctl(led_fd, 0x10, 25)
led_fd.close()

Expand Down
2 changes: 1 addition & 1 deletion meta-oe/recipes-distros/openspa/bootlogo/files/bootlogo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
if os.path.exists('/dev/lcd2') and os.path.exists('/usr/share/lcdbootlogo.png'): # VuDuo2 lcd
from fcntl import ioctl
led_fd = open("/dev/lcd2", 'rw')
led_fd = open("/dev/lcd2", 'w')
ioctl(led_fd, 0x10, 25)
led_fd.close()

Expand Down

0 comments on commit 1f9757d

Please sign in to comment.