mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix: LED is used as a flag, 1,2,4,8 not 1,2,3,4..
This commit is contained in:
parent
22ead8ca0b
commit
3587aeff2a
4 changed files with 30 additions and 27 deletions
|
@ -90,6 +90,7 @@ void LEDsoff() {
|
|||
LED_D_OFF();
|
||||
}
|
||||
|
||||
//ICEMAN: LED went from 1,2,3,4 -> 1,2,4,8
|
||||
void LED(int led, int ms) {
|
||||
if (led & LED_A) // Proxmark3 historical mapping: LED_ORANGE
|
||||
LED_A_ON();
|
||||
|
@ -123,26 +124,27 @@ void SpinOff(uint32_t pause) {
|
|||
SpinDelay(pause);
|
||||
}
|
||||
|
||||
// 0=A, 1=B, 2=C, 3=D
|
||||
// Blinks..
|
||||
// A = 1, B = 2, C = 4, D = 8
|
||||
void SpinErr(uint8_t led, uint32_t speed, uint8_t times) {
|
||||
SpinOff(speed);
|
||||
NTIME(times) {
|
||||
switch (led) {
|
||||
case 0:
|
||||
LED_A_INV();
|
||||
break;
|
||||
case 1:
|
||||
LED_B_INV();
|
||||
break;
|
||||
case 2:
|
||||
LED_C_INV();
|
||||
break;
|
||||
case 3:
|
||||
LED_D_INV();
|
||||
break;
|
||||
}
|
||||
|
||||
if (led & LED_A) // Proxmark3 historical mapping: LED_ORANGE
|
||||
LED_A_INV();
|
||||
if (led & LED_B) // Proxmark3 historical mapping: LED_GREEN
|
||||
LED_B_INV();
|
||||
if (led & LED_C) // Proxmark3 historical mapping: LED_RED
|
||||
LED_C_INV();
|
||||
if (led & LED_D) // Proxmark3 historical mapping: LED_RED2
|
||||
LED_D_INV();
|
||||
|
||||
SpinDelay(speed);
|
||||
}
|
||||
LED_A_OFF();
|
||||
LED_B_OFF();
|
||||
LED_C_OFF();
|
||||
LED_D_OFF();
|
||||
}
|
||||
|
||||
void SpinDown(uint32_t speed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue