Skip to content

mStart = -1 #3

@p2122

Description

@p2122

Hello,

the program aborted with an error when it couldn't find the start bytes and mStart became -1. I added the following to line 38 in smartmeter.py to avoid it:
if ((mStart + mLen + 2) <= len(data) and mStart > 0):

Regards, Peter

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