summaryrefslogtreecommitdiff
path: root/SPI.c
diff options
context:
space:
mode:
authorJoshua Drake <joshua.ellis.drake@gmail.com>2024-03-11 01:00:18 -0500
committerJoshua Drake <joshua.ellis.drake@gmail.com>2024-03-11 01:00:18 -0500
commitbda5904d876a895f438e200f31f29c2a8765cb82 (patch)
tree017c70075a85f486c6f619212b381f7402b81f34 /SPI.c
parentfe7e5b97a50fa66aadb11e20b8f5210e1cb6dde6 (diff)
Functional I2C bus. MPLAB autogenerated code is cringe and nonfunctional.
Diffstat (limited to 'SPI.c')
-rw-r--r--SPI.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SPI.c b/SPI.c
index 5ab0a2f..d4471ce 100644
--- a/SPI.c
+++ b/SPI.c
@@ -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);
}