Flipper tx: use file_path, example file (#2496)

* added subghz_dir
* use subghz_dir from file_path
* example file
This commit is contained in:
gullradriel 2025-01-26 18:46:43 +01:00 committed by GitHub
parent 54ad82a423
commit b2bb37af74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

View File

@ -89,8 +89,6 @@ class FlipperTxView : public View {
std::unique_ptr<FlipperPlayThread> replay_thread{};
Optional<flippersub_metadata> submeta{};
const std::filesystem::path subghz_dir = u"subghz";
MessageHandlerRegistration message_handler_tx_progress{
Message::ID::TXProgress,
[this](const Message* const p) {

View File

@ -49,3 +49,4 @@ const std::filesystem::path sstv_dir = u"SSTV";
const std::filesystem::path wav_dir = u"WAV";
const std::filesystem::path whipcalc_dir = u"WHIPCALC";
const std::filesystem::path ook_editor_dir = u"OOKFILES";
const std::filesystem::path subghz_dir = u"SUBGHZ";

View File

@ -51,5 +51,6 @@ extern const std::filesystem::path sstv_dir;
extern const std::filesystem::path wav_dir;
extern const std::filesystem::path whipcalc_dir;
extern const std::filesystem::path ook_editor_dir;
extern const std::filesystem::path subghz_dir;
#endif /* __FILE_PATH_H__ */

View File

@ -0,0 +1,10 @@
Filetype: Flipper SubGhz RAW File
Version: 1
Frequency: 433920000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: RAW
RAW_Data: 210 650 210 650 210 650 630 650 210 650 210 650 210 650 630 650
RAW_Data: 210 650 210 650 210 650 630 650 210 650 210 650 210 650 210 1950
RAW_Data: 210 650 210 650 210 650 630 650 210 650 210 650 210 650 630 650
RAW_Data: 210 650 210 650 210 650 630 650 210 650 210 650 210 650 210 1950