connectcore-demo-example: fix video resolution read for ccmp devices

Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
David Escalona 2022-07-11 13:26:22 +02:00
parent 3c6caabcdf
commit d275ad225f
1 changed files with 3 additions and 1 deletions

View File

@ -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 "-"