RfidResearchGroup / ChameleonUltra

The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
https://chameleonultra.com
GNU General Public License v3.0
838 stars 144 forks source link

Problem with leds on slot change #160

Open secit-pl opened 10 months ago

secit-pl commented 10 months ago

There is some problem with current slot indication while using in the same time the usb cli and the buttons:

On firmware version v2.0.0 do:

  1. change slots using buttons to check if we have 3 slots set
  2. first slot is red
  3. press button to next slot - slot 2 is green
  4. press button to next slot - slot 3 is blue

While changing the slots using buttons the colors are always the same (in my case 1: red, 2: green: 3 blue). Now lets connect to cli:

  1. using buttons change current slot to 3 (led 3 is blue)
  2. hw slot change -s 1 - slot has changed to 1 but now slot 1 led is red and slot 3 is red (should be slot 1:red, 3:off)
  3. hw slot change -s 2 - slot has changed to 2 but now slot 2 led is red and slot 3 is red (should be slot 2:green, 3 off)
  4. hw slot change -s 3 - slot has changed to 3 but now slot 3 led is red (not blue as it should be)
  5. Press button to previous slot, the slot 3 icon changes to blue and immediately it changes to slot 2 with green light (it looks like the led colors are corrected to the valid state)
  6. hw slot change -s 1 - slot has changed to 1 but now slot 1 led is red and slot 2 is red (should be slot 1:red, 2 off)