summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-03-10 04:36:10 +0100
committerDavid Lamparter <equinox@diac24.net>2013-03-10 04:36:10 +0100
commit3a776c311ccd2bc456d7563d1cebfdc832bdad57 (patch)
tree758365eb7832890bd8c63486c045652c61dacbf9
parent53b0281e610b1c7802e2c953053402671d4de86e (diff)
can: more r0ket compat
-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 */