adafruit / Adafruit_BluefruitLE_nRF51

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

Check for an error while reading NVM #40

Closed scytacki closed 6 years ago

scytacki commented 6 years ago

Occasionally the nRF51 module becomes unresponsive.

In this case the readNVM was happily returning a bunch of 0s, when in reality it was not getting any bytes.

This change just makes sure the number of bytes returned by readraw matches what is expected.