Skip to content

Fixes DAC init argument in AnalogCommunication::init - #168

Open
luizvilla wants to merge 1 commit into
owntech-foundation:mainfrom
luizvilla:fix/analog-comm-dac-init
Open

luizvilla wants to merge 1 commit into
owntech-foundation:mainfrom
luizvilla:fix/analog-comm-dac-init

Conversation

@luizvilla

Copy link
Copy Markdown
Member

AnalogCommunication::init() called spin.dac.initConstValue(ADC_NUM). It should pass DAC_NUM, the DAC that setConstValue() writes to on the next line.

Both defines are 2 today, so behaviour doesn't change. This just stops the call from breaking without warning if either define changes later.

🤖 Generated with Claude Code

initConstValue() was called with ADC_NUM instead of DAC_NUM. Both
are 2 today, so behaviour is unchanged, but the call would break
silently if either define changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant