Skip to content

Support for TENMA 72-2540 v5.8 #1

@comkieffer

Description

@comkieffer

In V5.8 of the TENM firmware, the identity command appends the serial number of the unit to the result.

>>> p = PowerSupply(get_port("/dev/ttyACM1"))
>>> p.get_identity()
'TENMA 72-2540 V5.8 SN:03211356'

Given that the is_tested check is basically

def is_tested(self):
    return self.get_identity() in tested_firmware

how should this be extended to support these newer firmwares?

The easiest option would be to truncate, but that doesn't very future-proof. Do you have any suggestions?

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