Skip to content

Blocks() returns first block only #18

@gregk27

Description

@gregk27

Based on my experience and the implementation, the blocks() function only returns the first block detected, not a list of blocks as described in the readme.

I assume this was done to remove the numbers inserted at the end by processReturnedData() (as they're not in the documented returned data) but has this as a side effect.

def blocks(self):
cmd = self.cmdToBytes(commandHeaderAndAddress+"002131")
self.writeToHuskyLens(cmd)
return self.processReturnData()[0]

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