[FL-2814] SubGhz: fix display information in the file if the frequency is not available for transmission in the given region (#1724)
This commit is contained in:
		
							parent
							
								
									a6052be0f1
								
							
						
					
					
						commit
						8b05bd1106
					
				| @ -47,7 +47,6 @@ typedef enum { | ||||
|     SubGhzLoadKeyStateUnknown, | ||||
|     SubGhzLoadKeyStateOK, | ||||
|     SubGhzLoadKeyStateParseErr, | ||||
|     SubGhzLoadKeyStateOnlyRx, | ||||
| } SubGhzLoadKeyState; | ||||
| 
 | ||||
| /** SubGhzLock */ | ||||
|  | ||||
| @ -278,11 +278,6 @@ bool subghz_key_load(SubGhz* subghz, const char* file_path, bool show_dialog) { | ||||
|             break; | ||||
|         } | ||||
| 
 | ||||
|         if(!furi_hal_region_is_frequency_allowed(temp_data32)) { | ||||
|             FURI_LOG_E(TAG, "This frequency can only be used for RX in your region"); | ||||
|             load_key_state = SubGhzLoadKeyStateOnlyRx; | ||||
|             break; | ||||
|         } | ||||
|         subghz->txrx->preset->frequency = temp_data32; | ||||
| 
 | ||||
|         if(!flipper_format_read_string(fff_data_file, "Preset", temp_str)) { | ||||
| @ -354,12 +349,6 @@ bool subghz_key_load(SubGhz* subghz, const char* file_path, bool show_dialog) { | ||||
|         } | ||||
|         return false; | ||||
| 
 | ||||
|     case SubGhzLoadKeyStateOnlyRx: | ||||
|         if(show_dialog) { | ||||
|             subghz_dialog_message_show_only_rx(subghz); | ||||
|         } | ||||
|         return false; | ||||
| 
 | ||||
|     case SubGhzLoadKeyStateOK: | ||||
|         return true; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Skorpionm
						Skorpionm