Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: delete_chordmap(chord: Chord) weirdness #12

Open
rayluo opened this issue Dec 27, 2024 · 0 comments
Open

Bug: delete_chordmap(chord: Chord) weirdness #12

rayluo opened this issue Dec 27, 2024 · 0 comments

Comments

@rayluo
Copy link

rayluo commented Dec 27, 2024

Hi there, so I start fiddling with my charachorder device and my little project again. And I ran into some weirdness of the delete_chordmap(chord: Chord).

  1. It seems that, the chord - which is actually a tuple - shall be in a consistent order for it to match successfully. That makes sense, but the docs shall mention that, and ideally the Chord class shall auto sort the input so that it will always have a consistent order. For example, chord "the" shall be sorted as "eht".
  2. After I presort the chord, the calls of delete_choadmap(...) still returns False, indicating an error. Indeed, the debug log shows an error code 2, HOWEVER the deletion was actually successful.
DEBUG:charachorder.device:[CharaChorderLite M0 (/dev/ttyACM0)]: Executing 'CML C3 00190610000000000000000000000000 646164'...
DEBUG:charachorder.device:[CharaChorderLite M0 (/dev/ttyACM0)]: Received 'CML C3 00190610000000000000000000000000 646164 0'
...
DEBUG:charachorder.device:[CharaChorderLite M0 (/dev/ttyACM0)]: Executing 'CML C4 00190610000000000000000000000000'...
DEBUG:charachorder.device:[CharaChorderLite M0 (/dev/ttyACM0)]: Received 'CML C4 00190610000000000000000000000000 2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant