### Hardware: Board: ESP32 DevKitv1 Core Installation version: master IDE name: Platform.io Computer OS: Ubuntu ### Description: If you call SPI.setHwCs twice it causes hardware CS to be turned off due to a bad check in the else if. This is easily fixed by changing the `else if` to be `else if (!use && _use_hw_ss)`. I found this while browsing master. ### Sketch ```cpp #include <Arduino.h> void setup() { SPI.begin() SPI.setHwCs(true); SPI.setHwCs(true); // CS pin does not get toggled now } ```