Browse Source

there was a problem with initing the rfm12. I have corrected it.

feature/2015
tixiv 13 years ago
parent
commit
d6e322a988
  1. 8
      main.c
  2. 2
      rfm12/borg_rfm12.c

8
main.c

@ -31,16 +31,16 @@ int main (void){
percnt_inc();
#endif
#ifdef RFM12_SUPPORT
borg_rfm12_init();
#endif
borg_hw_init();
#ifdef CAN_SUPPORT
bcan_init();
#endif
#ifdef RFM12_SUPPORT
borg_rfm12_init();
#endif
#ifdef JOYSTICK_SUPPORT
joy_init();
#endif

2
rfm12/borg_rfm12.c

@ -1,5 +1,6 @@
#include <avr/io.h>
#include <util/delay.h>
#include "rfm12.h"
@ -30,5 +31,6 @@ void borg_rfm12_tick(){
}
void borg_rfm12_init(){
_delay_ms(200);//the rfm12 seems to need this
rfm12_init();
}

Loading…
Cancel
Save