Skip to content

Commit 8609322

Browse files
committed
fix: all zeros is a valid Em410x too
1 parent 20a0bc3 commit 8609322

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

client/src/cmdlfem410x.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ static void em410x_construct_emul_graph(uint8_t *uid, uint8_t clock, uint8_t gap
108108
// print 64 bit EM410x ID in multiple formats
109109
void printEM410x(uint32_t hi, uint64_t id, bool verbose, int type) {
110110

111-
if (!id && !hi) return;
112-
113111
if (verbose == false) {
114112
if (type & 0x1) { // Short ID
115113
PrintAndLogEx(SUCCESS, "EM 410x ID "_GREEN_("%010" PRIX64), id);
@@ -254,11 +252,6 @@ static int ask_em410x_binary_decode(bool verbose, uint32_t *hi, uint64_t *lo, ui
254252
return PM3_ESOFT;
255253
}
256254

257-
if (!lo && !hi) {
258-
PrintAndLogEx(DEBUG, "DEBUG: Error - Em410x decoded to all zeros");
259-
return PM3_ESOFT;
260-
}
261-
262255
PrintAndLogEx(DEBUG, "DEBUG: Em410x idx: %zu, Len: %zu, Printing DemodBuffer:", *idx, *size);
263256
if (g_debugMode) {
264257
printDemodBuff(0, false, false, true);
@@ -680,7 +673,7 @@ static int CmdEM410xClone(const char *Cmd) {
680673
"lf em 410x clone --id 0F0368568B -> encode for T55x7 tag\n"
681674
"lf em 410x clone --id 0F0368568B --q5 -> encode for Q5/T5555 tag\n"
682675
"lf em 410x clone --id 0F0368568B --em -> encode for EM4305/4469\n"
683-
"lf em 410x clone --id 0F0368568B --hts -> encode for Hitag S/8211/8268/8310"
676+
"lf em 410x clone --id 0F0368568B --hts -> encode for Hitag S/8211/8268/8310"
684677
);
685678

686679
void *argtable[] = {

0 commit comments

Comments
 (0)