Skip to content

Tolerate misbehaving desks #412

@DavidVentura

Description

@DavidVentura

Hi
I was getting really erratic behavior from this tool, so I added debug info on the _bytes_to_meters_and_speed function and the 2nd byte was always stuck at 0xff, basically reporting my desk was at ~7meters:

$ idasen height
['0x17', '0xff', '0x0', '0x0']
7.150 meters

After lowering my desk all the way to zero, it started reporting proper values and idasen starting behaving well again.
In the meantime, I had asked it to save my position with idasen save stand and it "corrupted" the configuration, by storing a 7m height.

I think that

  • there should be a warning by the tool if the second byte is 0xff
  • invalid heights shouldn't be saved to the config

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions