bug: comp_out macro uses raw register mask instead of bitfield accessor #37
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense#37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
comp_out() returns (CMOUT & 0x01) instead of CMOUTbits.MC1OUT. Minor but inconsistent with the rest of the codebase.
Confirmed. In PICKLE.h,
comp_out()returns(CMOUT & 0x01)while the rest of the codebase uses bitfield accessors (e.g.,IOCAPbits.IOCAPx,WDTCONbits.WDTPS). Fix: change toCMOUTbits.MC1OUT.Note: this macro is currently unused in the codebase — no runtime impact.
comp_out() still returns
(CMOUT & 0x01). The comp_enable/comp_disable macros were fixed to use bitfield accessors (CM1CON0bits.C1ON) in PR #39, but comp_out was missed. Should beCMOUTbits.MC1OUT. Not currently used in the codebase.