فهرست منبع

37bit rfid save fix

Eric Betts 2 سال پیش
والد
کامیت
96668802af
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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