1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

fix typo in hspi_slave.c (#2276)

Current C++ implementation has this field hardcoded, so this case was
never hit
This commit is contained in:
Me No Dev 2016-07-15 09:53:20 +03:00 committed by GitHub
parent 07f4d4c241
commit 217ba9e072

View File

@ -75,10 +75,10 @@ void hspi_slave_begin(uint8_t status_len, void * arg)
{ {
status_len &= 7; status_len &= 7;
if(status_len > 4) { if(status_len > 4) {
status_len == 4; //max 32 bits status_len = 4; //max 32 bits
} }
if(status_len == 0) { if(status_len == 0) {
status_len == 1; //min 8 bits status_len = 1; //min 8 bits
} }
pinMode(SS, SPECIAL); pinMode(SS, SPECIAL);