Conversation
The firmware's SCPI_ADCChanEnableSet parses the ENAble:VOLTage:DC parameter as a decimal integer via SCPI_ParamInt32, but the docs and examples showed binary strings like "0000000011". This mismatch meant any caller following the documented examples would send the wrong channel configuration (e.g. "11" instead of "3" for channels 0+1). Updated XML docs, README, and DEVICE_INTERFACES.md to show decimal bitmask values. Updated the test to use a decimal example. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: a0fb8798807b
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Review Summary by QodoFix EnableAdcChannels documentation from binary to decimal bitmask
WalkthroughsDescription• Corrects EnableAdcChannels parameter format from binary to decimal • Updates XML docs with accurate decimal bitmask examples • Fixes README and DEVICE_INTERFACES.md code examples • Updates unit test to use correct decimal format Diagramflowchart LR
A["Binary format<br/>0000000011"] -->|Incorrect| B["Firmware parses<br/>as decimal 11"]
C["Decimal format<br/>3"] -->|Correct| D["Firmware parses<br/>as decimal 3"]
B -->|Wrong channels| E["Channels 0,1,3"]
D -->|Correct channels| F["Channels 0,1"]
G["Updated docs<br/>& examples"] -->|References| C
File Changes1. src/Daqifi.Core.Tests/Communication/Producers/ScpiMessageProducerTests.cs
|
Code Review by Qodo
1.
|
Addresses Qodo review feedback — simulator docs still referenced binary string format for ENAble:VOLTage:DC while core docs were updated to decimal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
SCPI_ADCChanEnableSetparses theENAble:VOLTage:DCparameter as a decimal integer viaSCPI_ParamInt32, but theEnableAdcChannelsXML docs, README, and DEVICE_INTERFACES.md all showed binary strings like"0000000011"."11"as decimal 11 = channels 0,1,3 instead of intended channels 0,1)."3"for channels 0+1,"84"for channels 2,4,6).Related: daqifi/daqifi-desktop#439
Note: The
daqifi-core-example-appalso has this issue — itsIsValidChannelMask()validates for binary strings and--channelshelp text likely shows binary format. That's a separate repo and should be fixed separately.Test plan
--channels 3to enable channels 0+1🤖 Generated with Claude Code