Skip to content

Incorrect usage of 'Val instead of 'Enum_Val #431

@liampwll

Description

@liampwll

The below line will raise a Constraint_Error if Range_Check is enabled as the enumeration is not continuous, using 'Enum_Val instead would fix this. This error could exist in the other uses of 'Val which I have not checked and it could have potentially worse consequences than this one which will likely be harmless when Range_Check is disabled.

if Multi_ADC_Mode_Selections'Val (C_ADC_Periph.CCR.MULT) = Independent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions