Skip to content

Facility and Severity are undefined when prival is 0 #44

@reneelee0807

Description

@reneelee0807

In parse.js, function 'GlossyParser.prototype.decodePri'
when a message starts with <0>, then the returnVal.prival will be 0.
Then in the if statement 'if(returnVal.prival && returnVal.prival >= 0 && returnVal.prival <= 191)' it will always return false as returnVal.prival is 0. Then Facility and Severity will be undefined.
Please fix this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions