Przeglądaj źródła

37bit rfid save fix

Eric Betts 2 lat temu
rodzic
commit
96668802af
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      seader_credential.c

+ 1 - 1
seader_credential.c

@@ -564,7 +564,7 @@ bool seader_credential_save(SeaderCredential* cred, const char* name) {
                 target = __builtin_bswap64((cred->credential | sentinel | header) << 4) >>
                          (64 - 48);
             } else {
-                target = __builtin_bswap64((cred->credential | sentinel) << 4) >> (64 - 48);
+                target = __builtin_bswap64(cred->credential << 4) >> (64 - 48);
             }
         } else {
             //8 bytes