diff options
-rw-r--r-- | PRU_ADS8688_Controller/PRU_ADS8688_Controller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PRU_ADS8688_Controller/PRU_ADS8688_Controller.c b/PRU_ADS8688_Controller/PRU_ADS8688_Controller.c index 99adfbe..75cb40b 100644 --- a/PRU_ADS8688_Controller/PRU_ADS8688_Controller.c +++ b/PRU_ADS8688_Controller/PRU_ADS8688_Controller.c | |||
@@ -149,7 +149,8 @@ send_command(uint16_t continuous) { | |||
149 | 149 | ||
150 | /* Wait for SPI coprocessor to acknowledge the command */ | 150 | /* Wait for SPI coprocessor to acknowledge the command */ |
151 | while (!(status & SEND_ACK_BIT)) { | 151 | while (!(status & SEND_ACK_BIT)) { |
152 | __xin(SCRATCHPAD_1, STATUS_REG, 0, status); | 152 | __xin(SCRATCHPAD_1, STATUS_REG, 0, temp); |
153 | status = temp; | ||
153 | } | 154 | } |
154 | 155 | ||
155 | /* Clear the start bit */ | 156 | /* Clear the start bit */ |