Minor bugs in plugin

Been working with this plugin to interface to a different alarm panel - in short, getting something to emulate an NX-584.

There are a couple of bugs in the plugin; one a simple typo, the other looks for something in the wrong byte of a message.

L_CaddxNX584Security.lua
Line 92, Event number ‘56’ is duplicated; ‘Control Power Up’ should be 57 not 56
Line 557, Byte 6 in the protocol does indeed hold the 4/6 bit pin flag, but as this is 0 indexed, it should be byte 5 here

No doubt doesn’t affect very many people, but it did in my case.

Cheers

m

Thanks surfermarty. I only just noticed this message of yours. I’ve made both fixes and committed version 72 to SVN.