diff options
author | Joshua Drake <joshua.ellis.drake@gmail.com> | 2024-03-11 01:00:18 -0500 |
---|---|---|
committer | Joshua Drake <joshua.ellis.drake@gmail.com> | 2024-03-11 01:00:18 -0500 |
commit | bda5904d876a895f438e200f31f29c2a8765cb82 (patch) | |
tree | 017c70075a85f486c6f619212b381f7402b81f34 /SPI.c | |
parent | fe7e5b97a50fa66aadb11e20b8f5210e1cb6dde6 (diff) |
Functional I2C bus. MPLAB autogenerated code is cringe and nonfunctional.
Diffstat (limited to 'SPI.c')
-rw-r--r-- | SPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ WriteBuffer[0] = WriteBuffer[2] = WriteBuffer[4] = 0b10000000; WriteBuffer[1] = (0xFF << Ohm_150) ^ (0xFF); WriteBuffer[3] = (0xFF << (Ohm_150 - 8)) ^ (0xFF); - WriteBuffer[5] = (0xFF << (Ohm_68 - 4)) ^ (0xFF) | (testLED << 8); + WriteBuffer[5] = (0xFF << (Ohm_68 - 4)) ^ (0xFF) | testLED; //if (Ohm_68 == 5) WriteBuffer[3]|= 0b10000000; readData = MSSP1_SPI_Exchange8bitBuffer(WriteBuffer, 6, ReadBuffer); } |