Touch Test tweak & Scanner default squelch (#1295)

* Leave nav bar visible at start & change seed
* Change default Scanner squelch
This commit is contained in:
Mark Thompson 2023-07-23 14:06:19 -05:00 committed by GitHub
parent 7bd370b5bc
commit e6ad5efbb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -540,14 +540,14 @@ bool DebugScreenTest::on_touch(const TouchEvent event) {
} }
uint16_t DebugScreenTest::semirand() { uint16_t DebugScreenTest::semirand() {
static uint64_t seed{0x31415926DEADBEEF}; static uint64_t seed{0x0102030405060708};
seed = seed * 137; seed = seed * 137;
seed = (seed >> 1) | ((seed & 0x01) << 63); seed = (seed >> 1) | ((seed & 0x01) << 63);
return (uint16_t)seed; return (uint16_t)seed;
} }
void DebugScreenTest::paint(Painter& painter) { 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"); painter.draw_string({10 * 8, screen_height / 2}, Styles::white, "Use Stylus");
pen_color = semirand(); pen_color = semirand();
} }

View File

@ -564,7 +564,7 @@ ScannerView::ScannerView(
field_lock_wait.set_value(2); field_lock_wait.set_value(2);
field_squelch.on_change = [this](int32_t v) { squelch = v; }; field_squelch.on_change = [this](int32_t v) { squelch = v; };
field_squelch.set_value(-10); field_squelch.set_value(-30);
// LEARN FREQUENCIES // LEARN FREQUENCIES
std::string scanner_txt = "SCANNER"; std::string scanner_txt = "SCANNER";