NFC: change from int8_t to uint8_t (#2302)
Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		
							parent
							
								
									eee5c35400
								
							
						
					
					
						commit
						126a9efd09
					
				| @ -1880,7 +1880,7 @@ Function,-,mf_classic_dict_is_key_present,_Bool,"MfClassicDict*, uint8_t*" | |||||||
| Function,-,mf_classic_dict_is_key_present_str,_Bool,"MfClassicDict*, FuriString*" | Function,-,mf_classic_dict_is_key_present_str,_Bool,"MfClassicDict*, FuriString*" | ||||||
| Function,-,mf_classic_dict_rewind,_Bool,MfClassicDict* | Function,-,mf_classic_dict_rewind,_Bool,MfClassicDict* | ||||||
| Function,-,mf_classic_emulator,_Bool,"MfClassicEmulator*, FuriHalNfcTxRxContext*" | Function,-,mf_classic_emulator,_Bool,"MfClassicEmulator*, FuriHalNfcTxRxContext*" | ||||||
| Function,-,mf_classic_get_classic_type,MfClassicType,"int8_t, uint8_t, uint8_t" | Function,-,mf_classic_get_classic_type,MfClassicType,"uint8_t, uint8_t, uint8_t" | ||||||
| Function,-,mf_classic_get_read_sectors_and_keys,void,"MfClassicData*, uint8_t*, uint8_t*" | Function,-,mf_classic_get_read_sectors_and_keys,void,"MfClassicData*, uint8_t*, uint8_t*" | ||||||
| Function,-,mf_classic_get_sector_by_block,uint8_t,uint8_t | Function,-,mf_classic_get_sector_by_block,uint8_t,uint8_t | ||||||
| Function,-,mf_classic_get_sector_trailer_block_num_by_sector,uint8_t,uint8_t | Function,-,mf_classic_get_sector_trailer_block_num_by_sector,uint8_t,uint8_t | ||||||
|  | |||||||
| 
 | 
| @ -367,7 +367,7 @@ bool mf_classic_check_card_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK) { | |||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| MfClassicType mf_classic_get_classic_type(int8_t ATQA0, uint8_t ATQA1, uint8_t SAK) { | MfClassicType mf_classic_get_classic_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK) { | ||||||
|     UNUSED(ATQA1); |     UNUSED(ATQA1); | ||||||
|     if((ATQA0 == 0x44 || ATQA0 == 0x04)) { |     if((ATQA0 == 0x44 || ATQA0 == 0x04)) { | ||||||
|         if((SAK == 0x08 || SAK == 0x88)) { |         if((SAK == 0x08 || SAK == 0x88)) { | ||||||
|  | |||||||
| @ -96,7 +96,7 @@ const char* mf_classic_get_type_str(MfClassicType type); | |||||||
| 
 | 
 | ||||||
| bool mf_classic_check_card_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK); | bool mf_classic_check_card_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK); | ||||||
| 
 | 
 | ||||||
| MfClassicType mf_classic_get_classic_type(int8_t ATQA0, uint8_t ATQA1, uint8_t SAK); | MfClassicType mf_classic_get_classic_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK); | ||||||
| 
 | 
 | ||||||
| uint8_t mf_classic_get_total_sectors_num(MfClassicType type); | uint8_t mf_classic_get_total_sectors_num(MfClassicType type); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Giacomo Ferretti
						Giacomo Ferretti