mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 11:06:30 -04:00
Cpld autodetect & boot splash screen (#1888)
* added delayed error message when hackrf cpld initialization fails * refactoring * implemented portapack cpld autodetection * refactoring * fixed valid config range * added lcd fast setup * added boot splash screen * added one frame delay to remove flickering * fixed config persistence
This commit is contained in:
parent
8725b01995
commit
c3add0ce84
7 changed files with 357 additions and 137 deletions
|
@ -430,13 +430,15 @@ void defaults() {
|
|||
}
|
||||
|
||||
void init() {
|
||||
const auto switches_state = get_switches_state();
|
||||
const auto switches_state = swizzled_switches();
|
||||
|
||||
// ignore for valid check
|
||||
auto config_mode_backup = config_mode_storage_direct();
|
||||
set_config_mode_storage_direct(CONFIG_MODE_NORMAL_VALUE);
|
||||
|
||||
if (!(switches_state[(size_t)ui::KeyEvent::Left] && switches_state[(size_t)ui::KeyEvent::Right]) && backup_ram->is_valid()) {
|
||||
if (!(((switches_state >> (size_t)ui::KeyEvent::Left & 1) == 1) &&
|
||||
((switches_state >> (size_t)ui::KeyEvent::Right & 1) == 1)) &&
|
||||
backup_ram->is_valid()) {
|
||||
// Copy valid persistent data into cache.
|
||||
cached_backup_ram = *backup_ram;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue