mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-22 20:43:07 +00:00
fix check [ci skip]
This commit is contained in:
parent
899614fece
commit
8b46e1c202
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ static const char* tab_default_paths[] = {
|
||||||
[ArchiveTabIButton] = ANY_PATH("ibutton"),
|
[ArchiveTabIButton] = ANY_PATH("ibutton"),
|
||||||
[ArchiveTabNFC] = ANY_PATH("nfc"),
|
[ArchiveTabNFC] = ANY_PATH("nfc"),
|
||||||
[ArchiveTabSubGhz] = ANY_PATH("subghz"),
|
[ArchiveTabSubGhz] = ANY_PATH("subghz"),
|
||||||
[ArchiveTabSubGhzRemote] = ANY_PATH("subghz_remote"),
|
[ArchiveTabSubGhzRemote] = EXT_PATH("subghz_remote"),
|
||||||
[ArchiveTabLFRFID] = ANY_PATH("lfrfid"),
|
[ArchiveTabLFRFID] = ANY_PATH("lfrfid"),
|
||||||
[ArchiveTabInfrared] = ANY_PATH("infrared"),
|
[ArchiveTabInfrared] = ANY_PATH("infrared"),
|
||||||
[ArchiveTabBadUsb] = ANY_PATH("badusb"),
|
[ArchiveTabBadUsb] = ANY_PATH("badusb"),
|
||||||
|
|
|
@ -22,8 +22,8 @@ void archive_set_file_type(ArchiveFile_t* file, const char* path, bool is_folder
|
||||||
file->type = ArchiveFileTypeBadUsb;
|
file->type = ArchiveFileTypeBadUsb;
|
||||||
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
|
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
|
||||||
}
|
}
|
||||||
if(furi_string_search(
|
if((furi_string_search(file->path, EXT_PATH("subghz_remote")) == 0) ||
|
||||||
file->path, archive_get_default_path(ArchiveTabSubGhzRemote)) == 0) {
|
(furi_string_search(file->path, ANY_PATH("subghz_remote")) == 0)) {
|
||||||
file->type = ArchiveFileTypeSubGhzRemote;
|
file->type = ArchiveFileTypeSubGhzRemote;
|
||||||
return; // *.txt file is a SubRem map file only if it is in SubRem folder
|
return; // *.txt file is a SubRem map file only if it is in SubRem folder
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue