From 8513771825e5de6631406f05e497b08c9c22df72 Mon Sep 17 00:00:00 2001 From: schneider Date: Thu, 4 Aug 2011 00:49:28 +0200 Subject: [PATCH] recvcard: init nrf --- firmware/l0dable/recvcard.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firmware/l0dable/recvcard.c b/firmware/l0dable/recvcard.c index d19da8d..3ef7bfb 100644 --- a/firmware/l0dable/recvcard.c +++ b/firmware/l0dable/recvcard.c @@ -24,9 +24,20 @@ uint8_t mac[5] = {1,2,3,2,1}; + struct NRF_CFG config = { + .channel= 81, + .txmac= "\x1\x2\x3\x2\x1", + .nrmacs=1, + .mac0= "\x1\x2\x3\x2\x1", + .maclen ="\x20", + }; void ram(void) { + memset(0,0,0); + nrf_config_set(&config); + + if( sendKeys() ) return;