Skip to content

Commit

Permalink
Flipper tx: use file_path, example file (#2496)
Browse files Browse the repository at this point in the history
* added subghz_dir
* use subghz_dir from file_path
* example file
  • Loading branch information
gullradriel authored Jan 26, 2025
1 parent 54ad82a commit b2bb37a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions firmware/application/external/flippertx/ui_flippertx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions firmware/application/file_path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
1 change: 1 addition & 0 deletions firmware/application/file_path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
10 changes: 10 additions & 0 deletions sdcard/SUBGHZ/flipper_tx_example.sub
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b2bb37a

Please sign in to comment.