Skip to content

Old UI doesn't let you set DMX address of a one slot device to 512 #1042

Closed

Description

@peternewman

See the original report here:
https://groups.google.com/forum/#!topic/open-lighting/Vf2kRA1PMII

Interestingly it does work via the RDM Patcher.

It would appear we've got an off by one error here:
https://github.com/OpenLightingProject/ola/blob/master/olad/RDMHTTPModule.cpp#L2107

The returned JSON is:
{ "error": "", "items": [ { "description": "DMX Start Address", "id": "address", "max": 511, "min": 0, "type": "uint", "value": 512 } ], "refresh": true }

It also allows you to set the address -1, and then gets NAcked by the responder.

@nomis52 is there some reason behind this, or is it just a straight bug?

Activity

  1. added this to the 0.10.1 milestone on Feb 19, 2016
  2. peternewman commented on Feb 19, 2016

    @peternewman
    MemberAuthor

    Full UI is here:
    https://github.com/OpenLightingProject/ola/blob/master/javascript/ola/full/rdm_attributes_panel.js#L370

    The mobile UI has the same issue (but the undefined test fails, on Chrome at least, so we don't get an error):
    https://github.com/OpenLightingProject/ola/blob/master/javascript/ola/mobile/universe_tab.js#L360

    So they're both currently inclusive ranges, but we're off by one when passing that.

  3. added a commit that references this issue on Feb 28, 2016
    fa91db3
  4. peternewman commented on Feb 28, 2016

    @peternewman
    MemberAuthor

    Main bug fixed. I just need to look at "the undefined test fails on the mobile UI, on Chrome at least, so we don't get an error".

  5. self-assigned this
    on Feb 28, 2016
  6. peternewman commented on Feb 29, 2016

    @peternewman
    MemberAuthor

    I think I have a fix for the mobile UI issue here: #1053

  7. modified the milestones: 0.10.1, 0.10.2 on Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions