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,6 +646,8 @@ def get_video_resolution():
|
||||||
Returns:
|
Returns:
|
||||||
String: Video resolution.
|
String: Video resolution.
|
||||||
"""
|
"""
|
||||||
|
res = read_file("/sys/class/drm/card0/card0-DPI-1/modes")
|
||||||
|
if res == NOT_AVAILABLE:
|
||||||
res = read_file("/sys/class/graphics/fb0/modes")
|
res = read_file("/sys/class/graphics/fb0/modes")
|
||||||
if res == NOT_AVAILABLE:
|
if res == NOT_AVAILABLE:
|
||||||
return "-"
|
return "-"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue