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

This commit is contained in:
tixiv 2012-03-02 00:01:47 +00:00
parent f8a9886e2b
commit d6e322a988
2 changed files with 6 additions and 4 deletions

8
main.c
View File

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

View File

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