adafruit / Adafruit_BluefruitLE_nRF51

Arduino library for nRF51822-based Adafruit Bluefruit LE modules
197 stars 122 forks source link

Midi example should test for FW version prior to setting callbacks. #59

Open TrackDaddy5 opened 3 years ago

TrackDaddy5 commented 3 years ago

I have firmware version 0.6.7 on my BlueFruitLE. The callbacks in the MIDI example fails due the wrong FW version.

Putting this code prior to the callbacks would help for those debugging issues.

  if ( !ble.isVersionAtLeast(MINIMUM_FIRMWARE_VERSION) )
  {
    error( F("Callback requires at least 0.7.0") );
  }
TrackDaddy5 commented 3 years ago

I've upgraded to 0.8.1 and everything runs great.