Subversion Repositories svn.mios32

Compare Revisions

Ignore whitespace Rev 2500 → Rev 2501

/trunk/apps/sequencers/midibox_seq_v4/core/seq_ui.c
2382,7 → 2382,11
portENTER_CRITICAL(); // should be atomic
SEQ_CORE_Scrub(incrementer);
portEXIT_CRITICAL();
} else if( !seq_ui_button_state.MENU_PRESSED && ui_encoder_callback != NULL ) {
} else if( seq_ui_button_state.MENU_PRESSED ) {
// encoder selects menu page like GP button
if( encoder >= 1 && encoder <= 16 )
SEQ_UI_PageSet(SEQ_UI_PAGES_MenuShortcutPageGet(encoder-1));
} else if( ui_encoder_callback != NULL ) {
ui_encoder_callback((encoder == 0) ? SEQ_UI_ENCODER_Datawheel : (encoder-1), incrementer);
ui_cursor_flash_ctr = ui_cursor_flash_overrun_ctr = 0; // ensure that value is visible when it has been changed
}