Fix undefined `cs` variable

Attempting to compile without this fix results in this error
```
main.c:226:9: error: 'cs' undeclared (first use in this function)
  226 |         cs = readbyte_blocking();
      |         ^~
```
This fix declares `cs` as a `uint8_t`. Tested and was able to read/write to a MX25L6406E and MX25L3206E
This commit is contained in:
kay 2024-02-10 12:45:08 -08:00 committed by Riku Viitanen
parent 3d573a01c4
commit e75e3a20e6
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -223,7 +223,7 @@ void s_cmd_s_pin_state() {
}
void s_cmd_s_spi_cs() {
cs = readbyte_blocking();
uint8_t cs = readbyte_blocking();
if (cs >= NUM_CS_AVAILABLE)
sendbyte_blocking(S_NAK);
return;