summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--can.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/can.c b/can.c
index 88289c3..2f1cba3 100644
--- a/can.c
+++ b/can.c
@@ -246,10 +246,11 @@ ISR(INT0_vect)
static void can_preinit(void)
{
- can_rx_addr.u = 0;
spi_ss(1);
#ifndef R0KET
+ can_rx_addr.u = 0;
+
DDRB |= (1 << B_SCK) | (1 << B_MOSI) | (1 << B_SS);
/* divisor: 0 0 0 = fosc / 4 = 2 MHz */