Browse Source

Fix Teensy 2.0 USB MIDI compile error on Arduino 1.6.0

main
PaulStoffregen 9 years ago
parent
commit
bd059d5af0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      usb_midi/usb_api.cpp

+ 1
- 1
usb_midi/usb_api.cpp View File

@@ -136,7 +136,7 @@ uint8_t usb_midi_class::analog2velocity(uint16_t val, uint8_t range)
#else
uint8_t i, e, b;
uint16_t s=0;
static const prog_uint8_t table[] = {225,124,65,34,17,9,4,2,1};
static const uint8_t PROGMEM table[] = {225,124,65,34,17,9,4,2,1};

if (val == 0) return 0;
if (val >= 1023) return 127;

Loading…
Cancel
Save