Announcement

Collapse
No announcement yet.

Error in CONFIG_CHANGE event for deletions?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error in CONFIG_CHANGE event for deletions?

    When I delete a simple switch from the UI, my plugin gets two deletion events - one for the feature then one for the device, all good as expected.

    But the reference passed in param(3) is that of the device in both cases, which seems wrong - for the feature I would expect it to be the feature reference.

    i.e. I get this:

    CONFIG_CHANGE params = 32,0,0,1030,2,Unknown Unknown Switch 3
    CONFIG_CHANGE params = 32,0,0,1030,2,Device Device

    but I'd expect to get this:

    CONFIG_CHANGE params = 32,0,0,1031,2,Unknown Unknown Switch 3
    CONFIG_CHANGE params = 32,0,0,1030,2,Device Device

    (1030 is the switch device, 1031 is the switch feature)

    Am I missing something or is this a bug?

    Any ideas for a workaround? I don't really care about the device, only the feature, but it looks like I'll have to keep details of the linkage myself.
Working...
X