mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems
MIT License
12 stars 11 forks source link

Catena_Flash_at25sf081::begin() dosen't handle ChipSelectPin == -1 properly #337

Open terrillmoore opened 2 years ago

terrillmoore commented 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.