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();
|
||||
#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
|
||||
|
|
|
@ -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…
Reference in New Issue