Closed
Description
There is no checking done to ensure that devReg
is not nullptr
. IMO this could be accomplished by adding a check above the write on line 168 like so.
if (devReg != nullptr && regLength > 0)
_i2cPort->write(devReg, regLength);
SparkFun_Toolkit/src/sfTkArdI2C.cpp
Lines 143 to 174 in 2aa0fde