exsilium / pxbee-trigger

Programmable XBee trigger for relay impulse. For automating things that are not yet automated.
BSD 2-Clause "Simplified" License
25 stars 5 forks source link

Logic error in status pin Interrupt service routines #14

Closed exsilium closed 3 years ago

exsilium commented 3 years ago

The current logic is faulty, does not operate correctly and can cause the XBee module to become unresponsive to external Zigbee communications losing ability to control the automaton connected to the module.

The initial thinking was:

https://github.com/exsilium/pxbee-trigger/blob/aab446bc3cbb17c9166789d6ff0d39b4e6ab1de0/src/main.c#L591-L603

https://github.com/exsilium/pxbee-trigger/blob/aab446bc3cbb17c9166789d6ff0d39b4e6ab1de0/src/main.c#L555-L569

In reality the flow does not work as expected for multiple reasons: