Fix typo in nfc_device ("depricated") #1212
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		@@ -764,7 +764,7 @@ static bool nfc_device_load_data(NfcDevice* dev, string_t path) {
 | 
				
			|||||||
    uint32_t data_cnt = 0;
 | 
					    uint32_t data_cnt = 0;
 | 
				
			||||||
    string_t temp_str;
 | 
					    string_t temp_str;
 | 
				
			||||||
    string_init(temp_str);
 | 
					    string_init(temp_str);
 | 
				
			||||||
    bool depricated_version = false;
 | 
					    bool deprecated_version = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    do {
 | 
					    do {
 | 
				
			||||||
        // Check existance of shadow file
 | 
					        // Check existance of shadow file
 | 
				
			||||||
@@ -783,7 +783,7 @@ static bool nfc_device_load_data(NfcDevice* dev, string_t path) {
 | 
				
			|||||||
        uint32_t version = 0;
 | 
					        uint32_t version = 0;
 | 
				
			||||||
        if(!flipper_format_read_header(file, temp_str, &version)) break;
 | 
					        if(!flipper_format_read_header(file, temp_str, &version)) break;
 | 
				
			||||||
        if(string_cmp_str(temp_str, nfc_file_header) || (version != nfc_file_version)) {
 | 
					        if(string_cmp_str(temp_str, nfc_file_header) || (version != nfc_file_version)) {
 | 
				
			||||||
            depricated_version = true;
 | 
					            deprecated_version = true;
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // Read Nfc device type
 | 
					        // Read Nfc device type
 | 
				
			||||||
@@ -810,8 +810,8 @@ static bool nfc_device_load_data(NfcDevice* dev, string_t path) {
 | 
				
			|||||||
    } while(false);
 | 
					    } while(false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(!parsed) {
 | 
					    if(!parsed) {
 | 
				
			||||||
        if(depricated_version) {
 | 
					        if(deprecated_version) {
 | 
				
			||||||
            dialog_message_show_storage_error(dev->dialogs, "File format depricated");
 | 
					            dialog_message_show_storage_error(dev->dialogs, "File format deprecated");
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            dialog_message_show_storage_error(dev->dialogs, "Can not parse\nfile");
 | 
					            dialog_message_show_storage_error(dev->dialogs, "Can not parse\nfile");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user