Skip to content

Commit

Permalink
Fix bug: wrong declaration order
Browse files Browse the repository at this point in the history
  • Loading branch information
garubi committed Nov 7, 2018
1 parent b0ce536 commit a2a502c
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions D9-drawbars-controller.ino
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,23 @@ const byte VIBCHO_LED_IDX_START = BTN_LED_COUNT + 1;
const byte VIBCHO_LED_COUNT = 6; // number of leds used to show the Vibrato/Chorus selected.
const byte TOTAL_LED_COUNT = BTN_LED_COUNT + VIBCHO_LED_COUNT + 1; // total number of leds (buttons + vib/cho + ALT)


/* *************************************************************************
* The Controls STATUSES:
* We have 3 statuses: UPPER, LOWER and the ALT
*/
byte STATUS;
byte OLD_STATUS;

const byte ST_ALT = 0; // Controller status: ALTERNATE
const byte ST_UP = 1; // Controller status: UPPER
const byte ST_LOW = 2; // Controller status: LOWER
const byte STATUS_IDX[] = // the column number in the PRESETS array where the parameters starts for each status
{
12, 0, 6
};
const byte STATUSES_COUNT = sizeof(STATUS_IDX) / sizeof(STATUS_IDX[0]);

/* *************************************************************************
* presets
*/
Expand Down Expand Up @@ -159,20 +176,6 @@ byte btn_default[BTN_LED_COUNT+1][STATUSES_COUNT] = {
/* vib/cho sel. value*/ {127,0,0} // we start with C3
};

/* *************************************************************************
* Momentary status
*/
byte STATUS;
byte OLD_STATUS;

const byte ST_ALT = 0; // Controller status: ALTERNATE
const byte ST_UP = 1; // Controller status: UPPER
const byte ST_LOW = 2; // Controller status: LOWER
const byte STATUS_IDX[] = // the column number in the PRESETS array where the parameters starts for each status
{
12, 0, 6
};
const byte STATUSES_COUNT = sizeof(STATUS_IDX) / sizeof(STATUS_IDX[0]);

/* *************************************************************************
* Drawbars initialization
Expand Down

0 comments on commit a2a502c

Please sign in to comment.