Skip to content

Commit

Permalink
Corrected UVI overflow calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
RemingtonGerras committed Oct 7, 2023
1 parent 020c268 commit 650885a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socs/agents/vantagepro2/drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def receive_data(self):
# Correct UV Index by a factor of 10 and fix overflow
uvi = loop_data['UV']
if uvi < 0:
uvi += 2**7
uvi += 2**8
uvi /= 10
loop_data['UV'] = uvi

Expand Down

0 comments on commit 650885a

Please sign in to comment.