Fix incorrect types in encodeCardholderCredentials
This commit is contained in:
1 parent
13ff8d50cf
commit
7b0a85a0af
1 file changed
+2
-2
@@ -82,8 +82,8 @@ void decodeCardholderCredentials(uint8_t *eight_bytes, GallagherCredentials_t *c
|
|||||||
|
|
||||||
void encodeCardholderCredentials(uint8_t *eight_bytes, GallagherCredentials_t *creds) {
|
void encodeCardholderCredentials(uint8_t *eight_bytes, GallagherCredentials_t *creds) {
|
||||||
uint8_t rc = creds->region_code;
|
uint8_t rc = creds->region_code;
|
||||||
uint8_t fc = creds->facility_code;
|
uint16_t fc = creds->facility_code;
|
||||||
uint8_t cn = creds->card_number;
|
uint32_t cn = creds->card_number;
|
||||||
uint8_t il = creds->issue_level;
|
uint8_t il = creds->issue_level;
|
||||||
|
|
||||||
// put data into the correct places (Gallagher obfuscation)
|
// put data into the correct places (Gallagher obfuscation)
|
||||||
|
|||||||
Reference in new issue
Block a user