Open ste7anste7an opened 1 year ago
https://github.com/antonvh/PUPRemote/blob/7cffd7331b237a5f96c6d25186238bdeab2b913b/LPF2/pupremote.py#L61
When a message from the hub is received by the pup, it needs to lookup the command that belongs to that mode. Therefore, we need an index of the commands indexes by mode.
Proposal:
self.mode_command=[]
__init__
self.mode_command.append(mode_name)
Implemented in new code
https://github.com/antonvh/PUPRemote/blob/7cffd7331b237a5f96c6d25186238bdeab2b913b/LPF2/pupremote.py#L61
When a message from the hub is received by the pup, it needs to lookup the command that belongs to that mode. Therefore, we need an index of the commands indexes by mode.
Proposal:
self.mode_command=[]
to the__init__
function