Commit 46dbdb3b authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove repetition in poly init

parent 27f8c56e
......@@ -13,7 +13,7 @@ enum _programs {
PGM_MONO,
NUM_PGM,
};
uint8_t current_program;
static uint8_t current_program = NUM_PGM;
void (*note_on[NUM_PGM])(uint8_t n) = {
poly_note_on,
......@@ -72,9 +72,7 @@ main(void)
io_init();
dac_init();
midi_init();
poly_init();
current_program = PGM_POLY;
program_change(PGM_POLY);
for (;;) {
if (!midi_read()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment