there was a problem with initing the rfm12. I have corrected it.
This commit is contained in:
parent
f8a9886e2b
commit
d6e322a988
8
main.c
8
main.c
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue