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

Example how to use SessionFlags #9

Closed
marcelomanzo opened this issue Nov 5, 2019 · 1 comment
Closed

Example how to use SessionFlags #9

marcelomanzo opened this issue Nov 5, 2019 · 1 comment

Comments

@marcelomanzo
Copy link

Can you please provide an example how to use the Flags class and the SessionFlags variable?

When I print the sessionflags, I just get a big int number.

Thanks!

@kutu
Copy link
Owner

kutu commented Nov 5, 2019

if ir.EngineWarnings & 0x8:
    print('engine stalled')

if ir.EngineWarnings & (0x1 | 0x2):
    print('water temp and fuel pressure warnings')

same for session flags

@kutu kutu closed this as completed Nov 5, 2019
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

2 participants