avoid using a global variable
[nrf51822] properly generate stop condition of I2C read sequence
Merge pull request #487 from xiongyihui/nrf51822

[nrf51822] avoid using a global variable and fix I2C read sequence