We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Board: ESP32 DevKitv1 Core Installation version: master IDE name: Platform.io Computer OS: Ubuntu
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).
else if
else if (!use && _use_hw_ss)
I found this while browsing master.
#include <Arduino.h> void setup() { SPI.begin() SPI.setHwCs(true); SPI.setHwCs(true); // CS pin does not get toggled now }
The text was updated successfully, but these errors were encountered:
Fix logic in SPIClass::setHwCs. (#4559)
6b01143
Fixes #4558
Successfully merging a pull request may close this issue.
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 beelse if (!use && _use_hw_ss)
.I found this while browsing master.
Sketch
The text was updated successfully, but these errors were encountered: