mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
Touch Test tweak & Scanner default squelch (#1295)
* Leave nav bar visible at start & change seed * Change default Scanner squelch
This commit is contained in:
parent
7bd370b5bc
commit
e6ad5efbb7
@ -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();
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user