Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-scripts: get_av_settings.py uses wrong flags #74

Open
JayFoxRox opened this issue Jun 12, 2019 · 0 comments
Open

python-scripts: get_av_settings.py uses wrong flags #74

JayFoxRox opened this issue Jun 12, 2019 · 0 comments

Comments

@JayFoxRox
Copy link
Owner

Code contains this:

  mode = val & 0x000E0000
  if (mode & 0x00010000):
    print("  HDTV 480i")

but also this:

  if val & 0x00010000:
    print("  Widescreen")

Both of them check val & 0x00010000, although it's not even reachable in the mode variable, as that particular bit was masked. Therefore, it is assumed that the resolution field is bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant