mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 12:07:36 +00:00
added dfu button to debug app
This commit is contained in:
@@ -42,7 +42,7 @@ using namespace hackrf::one;
|
||||
|
||||
static Thread* thread_controls_event = NULL;
|
||||
|
||||
static std::array<Debounce, 7> switch_debounce;
|
||||
static std::array<Debounce, 8> switch_debounce;
|
||||
|
||||
static Encoder encoder;
|
||||
|
||||
@@ -193,11 +193,13 @@ void controls_init() {
|
||||
|
||||
SwitchesState get_switches_state() {
|
||||
SwitchesState result;
|
||||
for(size_t i=0; i<result.size(); i++) {
|
||||
for(size_t i=0; i<result.size()-1; i++) {
|
||||
// TODO: Ignore multiple keys at the same time?
|
||||
result[i] = switch_debounce[i].state();
|
||||
}
|
||||
|
||||
result[result.size()-1] = switch_debounce[switch_debounce.size()-1].state();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user