Skip to content

Commit 217ba9e

Browse files
authored
fix typo in hspi_slave.c (#2276)
Current C++ implementation has this field hardcoded, so this case was never hit
1 parent 07f4d4c commit 217ba9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SPISlave/src/hspi_slave.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ void hspi_slave_begin(uint8_t status_len, void * arg)
7575
{
7676
status_len &= 7;
7777
if(status_len > 4) {
78-
status_len == 4; //max 32 bits
78+
status_len = 4; //max 32 bits
7979
}
8080
if(status_len == 0) {
81-
status_len == 1; //min 8 bits
81+
status_len = 1; //min 8 bits
8282
}
8383

8484
pinMode(SS, SPECIAL);

0 commit comments

Comments
 (0)