antonvh / PUPRemote

Communication protocol over LEGO PoweredUP (PUP) for hubs running Pybricks
GNU General Public License v3.0
6 stars 2 forks source link

lookup for mode number #3

Open ste7anste7an opened 1 year ago

ste7anste7an commented 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:

ste7anste7an commented 1 year ago

Implemented in new code