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

SITL: fix array-bounds warning in tsys01 simulation #29175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

... if the driver ever asked for prom0 then we would do Very Bad Things here.

File: build/sitl/../../libraries/SITL/SIM_Temperature_TSYS01.cpp Warning: line 38, column 13
Assigned value is garbage or undefined

.. this shifts everything along by one to leave room for _k[0], even 'though the driver does not currently ask for it

... if the driver ever asked for prom0 then we would do Very Bad Things here.

File:	build/sitl/../../libraries/SITL/SIM_Temperature_TSYS01.cpp
Warning:	line 38, column 13
Assigned value is garbage or undefined
@peterbarker peterbarker force-pushed the pr/tsys01-fix-array-bounds branch from 162a857 to 21e5734 Compare January 29, 2025 03:54
@peterbarker peterbarker changed the title SITL: fix array-bounds warning SITL: fix array-bounds warning in tsys01 simulation Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant