Open terrillmoore opened 2 years ago
If ChipSelectPin is -1, begin() incorrectly tries to write to pin -1 and set the mode for -1 to OUTPUT. It should be using this->m_CS. Found by examining code after seeing warnings in this area from -Wall.
ChipSelectPin
begin()
OUTPUT
this->m_CS
-Wall
If
ChipSelectPin
is -1,begin()
incorrectly tries to write to pin -1 and set the mode for -1 toOUTPUT
. It should be usingthis->m_CS
. Found by examining code after seeing warnings in this area from-Wall
.