From 01010e72728a979b0a991576d1101d19829ecec5 Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Tue, 11 Sep 2018 15:37:36 +0200 Subject: Improved CAN, locking and general IRQ performance Fixes issues with CAN stopping when overwhelmed by data RX\TX. Keeps can in freezemode until explicitly activated. CANINTF_TX is now a CAN TX in progress flag. Runtime asserts are now disabled. Signed-off-by: Dominik Sliwa --- source/adc_task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/adc_task.c') diff --git a/source/adc_task.c b/source/adc_task.c index 2615943..daf4716 100644 --- a/source/adc_task.c +++ b/source/adc_task.c @@ -270,7 +270,7 @@ int tsc_registers(dspi_transfer_t *spi_transfer) if (rx_buf[0] == APALIS_TK1_K20_WRITE_INST) { switch (rx_buf[1]) { case APALIS_TK1_K20_TSCREG: - return -ENOENT; + return 0; default: return -ENOENT; } @@ -320,7 +320,7 @@ int adc_registers(dspi_transfer_t *spi_transfer) if (rx_buf[0] == APALIS_TK1_K20_WRITE_INST) { switch (rx_buf[1]) { case APALIS_TK1_K20_ADCREG: - return -ENOENT; + return 0; default: return -ENOENT; } -- cgit v1.2.3