From fc08d4ead94c0d8bf4519208be22600db7bff0f6 Mon Sep 17 00:00:00 2001 From: gullradriel <3157857+gullradriel@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:24:40 +0100 Subject: [PATCH] renaming Ook to OOK (#2379) --- .../application/external/ookbrute/main.cpp | 4 ++-- .../external/ookbrute/ui_ookbrute.cpp | 20 +++++++++---------- .../external/ookbrute/ui_ookbrute.hpp | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/firmware/application/external/ookbrute/main.cpp b/firmware/application/external/ookbrute/main.cpp index bed52c42..901ea305 100644 --- a/firmware/application/external/ookbrute/main.cpp +++ b/firmware/application/external/ookbrute/main.cpp @@ -26,7 +26,7 @@ namespace ui::external_app::ookbrute { void initialize_app(ui::NavigationView& nav) { - nav.push(); + nav.push(); } } // namespace ui::external_app::ookbrute @@ -38,7 +38,7 @@ __attribute__((section(".external_app.app_ookbrute.application_information"), us /*.header_version = */ CURRENT_HEADER_VERSION, /*.app_version = */ VERSION_MD5, - /*.app_name = */ "OokBrute", + /*.app_name = */ "OOKBrute", /*.bitmap_data = */ { 0x20, 0x00, diff --git a/firmware/application/external/ookbrute/ui_ookbrute.cpp b/firmware/application/external/ookbrute/ui_ookbrute.cpp index 55378a2e..c997fb6b 100644 --- a/firmware/application/external/ookbrute/ui_ookbrute.cpp +++ b/firmware/application/external/ookbrute/ui_ookbrute.cpp @@ -31,11 +31,11 @@ using namespace ui; namespace ui::external_app::ookbrute { -void OokBruteView::focus() { +void OOKBruteView::focus() { button_startstop.focus(); } -OokBruteView::OokBruteView(NavigationView& nav) +OOKBruteView::OOKBruteView(NavigationView& nav) : nav_{nav} { add_children({ &button_startstop, @@ -69,7 +69,7 @@ OokBruteView::OokBruteView(NavigationView& nav) update_start_stop(0); } -void OokBruteView::update_start_stop(uint32_t proto) { +void OOKBruteView::update_start_stop(uint32_t proto) { uint8_t bits = 12; switch (proto) { default: @@ -91,7 +91,7 @@ void OokBruteView::update_start_stop(uint32_t proto) { field_stop.set_value(max); } -void OokBruteView::validate_start_stop() { +void OOKBruteView::validate_start_stop() { if (field_start.value() > field_stop.value()) { field_start.set_value(field_stop.value()); } @@ -100,7 +100,7 @@ void OokBruteView::validate_start_stop() { } } -void OokBruteView::generate_packet() { +void OOKBruteView::generate_packet() { uint32_t protocol = options_atkmode.selected_index_value(); uint8_t byte = 0; size_t bitstream_length = 0; @@ -210,13 +210,13 @@ void OokBruteView::generate_packet() { 0); } -void OokBruteView::stop() { +void OOKBruteView::stop() { transmitter_model.disable(); baseband::shutdown(); button_startstop.set_text(LanguageHelper::currentMessages[LANG_START]); } -void OokBruteView::start() { +void OOKBruteView::start() { counter = field_start.value(); baseband::run_prepared_image(portapack::memory::map::m4_code.base()); transmitter_model.enable(); @@ -224,7 +224,7 @@ void OokBruteView::start() { generate_packet(); } -void OokBruteView::on_tx_progress(const bool done) { +void OOKBruteView::on_tx_progress(const bool done) { if (done) { if (is_running) { counter++; @@ -238,7 +238,7 @@ void OokBruteView::on_tx_progress(const bool done) { } } -OokBruteView::~OokBruteView() { +OOKBruteView::~OOKBruteView() { is_running = false; stop(); } @@ -250,4 +250,4 @@ OokBruteView::~OokBruteView() { https://web.archive.org/web/20230331125843/https://phreakerclub.com/447 -*/ \ No newline at end of file +*/ diff --git a/firmware/application/external/ookbrute/ui_ookbrute.hpp b/firmware/application/external/ookbrute/ui_ookbrute.hpp index c3f7100a..d5a4c8d8 100644 --- a/firmware/application/external/ookbrute/ui_ookbrute.hpp +++ b/firmware/application/external/ookbrute/ui_ookbrute.hpp @@ -24,15 +24,15 @@ namespace ui::external_app::ookbrute { #define OOK_SAMPLERATE 2280000U -class OokBruteView : public View { +class OOKBruteView : public View { public: - OokBruteView(NavigationView& nav); - ~OokBruteView(); + OOKBruteView(NavigationView& nav); + ~OOKBruteView(); void focus() override; std::string title() const override { - return "OokBrute"; + return "OOKBrute"; }; private: