mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix: 'lf indala' - wrong number of bits
This commit is contained in:
parent
421604a395
commit
09791638c8
1 changed files with 5 additions and 5 deletions
|
@ -377,8 +377,8 @@ int CmdIndalaDemodAlt(const char *Cmd) {
|
||||||
|
|
||||||
int CmdIndalaSim(const char *Cmd) {
|
int CmdIndalaSim(const char *Cmd) {
|
||||||
|
|
||||||
char cmdp = param_getchar(Cmd, 0);
|
char cmdp = tolower(param_getchar(Cmd, 0));
|
||||||
if (strlen(Cmd) == 0 || cmdp == 'h' || cmdp == 'H') return usage_lf_indala_sim();
|
if (strlen(Cmd) == 0 || cmdp == 'h') return usage_lf_indala_sim();
|
||||||
|
|
||||||
uint8_t bits[224];
|
uint8_t bits[224];
|
||||||
size_t size = sizeof(bits);
|
size_t size = sizeof(bits);
|
||||||
|
@ -392,7 +392,7 @@ int CmdIndalaSim(const char *Cmd) {
|
||||||
return usage_lf_indala_sim();
|
return usage_lf_indala_sim();
|
||||||
|
|
||||||
// convert to binarray
|
// convert to binarray
|
||||||
uint8_t counter = 224;
|
uint8_t counter = 223;
|
||||||
for (uint8_t i = 0; i < len; i++) {
|
for (uint8_t i = 0; i < len; i++) {
|
||||||
for(uint8_t j = 0; j < 8; j++) {
|
for(uint8_t j = 0; j < 8; j++) {
|
||||||
bits[counter--] = hexuid[i] & 1;
|
bits[counter--] = hexuid[i] & 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue