From e6ad5efbb741b7bc850d75c3113f67a8a852de9a Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Sun, 23 Jul 2023 14:06:19 -0500 Subject: [PATCH] Touch Test tweak & Scanner default squelch (#1295) * Leave nav bar visible at start & change seed * Change default Scanner squelch --- firmware/application/apps/ui_debug.cpp | 4 ++-- firmware/application/apps/ui_scanner.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/application/apps/ui_debug.cpp b/firmware/application/apps/ui_debug.cpp index 8465bfe3..7c1a79b2 100644 --- a/firmware/application/apps/ui_debug.cpp +++ b/firmware/application/apps/ui_debug.cpp @@ -540,14 +540,14 @@ bool DebugScreenTest::on_touch(const TouchEvent event) { } uint16_t DebugScreenTest::semirand() { - static uint64_t seed{0x31415926DEADBEEF}; + static uint64_t seed{0x0102030405060708}; seed = seed * 137; seed = (seed >> 1) | ((seed & 0x01) << 63); return (uint16_t)seed; } void DebugScreenTest::paint(Painter& painter) { - painter.fill_rectangle({0, 0, screen_width, screen_height}, Color::white()); + painter.fill_rectangle({0, 16, screen_width, screen_height - 16}, Color::white()); painter.draw_string({10 * 8, screen_height / 2}, Styles::white, "Use Stylus"); pen_color = semirand(); } diff --git a/firmware/application/apps/ui_scanner.cpp b/firmware/application/apps/ui_scanner.cpp index 48a456c0..7930ba96 100644 --- a/firmware/application/apps/ui_scanner.cpp +++ b/firmware/application/apps/ui_scanner.cpp @@ -564,7 +564,7 @@ ScannerView::ScannerView( field_lock_wait.set_value(2); field_squelch.on_change = [this](int32_t v) { squelch = v; }; - field_squelch.set_value(-10); + field_squelch.set_value(-30); // LEARN FREQUENCIES std::string scanner_txt = "SCANNER";