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

Order temp before get the min and max for IRAirConditionerAccessory #433

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

tuliocll
Copy link

I was getting this error when adding a new IR Air:
image

I saw that the minimum value was 32 and max 31 on the logs.
After debugging the code, I saw that the code gets the minimum value from array position 0, printing the array I got this:
image

I another IR Air the values are ordered:
image

So, I change the code to get the min and max values using the Math object.

@0x5e 0x5e merged commit 4c2655a into 0x5e:develop_1.7.0 Jan 12, 2024
8 checks passed
@0x5e
Copy link
Owner

0x5e commented Jan 12, 2024

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants