mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
2021/12 QFP100 fix
This commit is contained in:
parent
9fbcab4224
commit
a37ba1ee2b
@ -228,6 +228,11 @@ static const portapack::cpld::Config& portapack_cpld_config() {
|
||||
}
|
||||
|
||||
Backlight* backlight() {
|
||||
// if (portapack::persistent_memory::config_cpld() == 1) {
|
||||
// return static_cast<portapack::Backlight*>(&backlight_cat4004);
|
||||
// } else if (portapack::persistent_memory::config_cpld() == 2) {
|
||||
// return static_cast<portapack::Backlight*>(&backlight_on_off);
|
||||
// }
|
||||
return (portapack_model() == PortaPackModel::R2_20170522)
|
||||
? static_cast<portapack::Backlight*>(&backlight_cat4004) // R2_20170522
|
||||
: static_cast<portapack::Backlight*>(&backlight_on_off); // R1_20150901
|
||||
@ -415,8 +420,12 @@ bool init() {
|
||||
audio::init(portapack_audio_codec());
|
||||
|
||||
if( !portapack::cpld::update_if_necessary(portapack_cpld_config()) ) {
|
||||
shutdown_base();
|
||||
return false;
|
||||
const auto switches_state = get_switches_state();
|
||||
// If using a "2021/12 QFP100", press and hold the left button while booting. Should only need to do once.
|
||||
if (!switches_state[(size_t)ui::KeyEvent::Left]){
|
||||
shutdown_base();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if( !hackrf::cpld::load_sram() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user