connectcore-demo-example: fix video resolution read for ccmp devices
Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
parent
3c6caabcdf
commit
d275ad225f
|
|
@ -646,7 +646,9 @@ def get_video_resolution():
|
|||
Returns:
|
||||
String: Video resolution.
|
||||
"""
|
||||
res = read_file("/sys/class/graphics/fb0/modes")
|
||||
res = read_file("/sys/class/drm/card0/card0-DPI-1/modes")
|
||||
if res == NOT_AVAILABLE:
|
||||
res = read_file("/sys/class/graphics/fb0/modes")
|
||||
if res == NOT_AVAILABLE:
|
||||
return "-"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue