I'll add some comments to the code, but quick overview:
The handlers are a bit of a departure. I've split out doors and central locking into their own functions for ease. The event data is now uint8_t rather than unsigned char.
I've opted to add central locking/doors status to both IBus and Handler contexts. I'm not yet sure what the comfort locks implementation will look like, so I figured I'd add them both for now and remove anything that might ultimately be redundant down the track.
I've intentionally left the existing doors/locks handling for the moment. I'll remove that on a later branch.
As with the previous branch, this is just groundwork. Some refactoring to come.
I'll add some comments to the code, but quick overview:
The handlers are a bit of a departure. I've split out doors and central locking into their own functions for ease. The event data is now
uint8_t
rather thanunsigned char
.I've opted to add central locking/doors status to both IBus and Handler contexts. I'm not yet sure what the comfort locks implementation will look like, so I figured I'd add them both for now and remove anything that might ultimately be redundant down the track.
I've intentionally left the existing doors/locks handling for the moment. I'll remove that on a later branch.
As with the previous branch, this is just groundwork. Some refactoring to come.
Builds without warning/error 👍