diff --git a/src/energenie/drv/build_rpi b/src/energenie/drv/build_rpi index 1ea8f9c..0e0af3b 100755 --- a/src/energenie/drv/build_rpi +++ b/src/energenie/drv/build_rpi @@ -27,9 +27,9 @@ # build radio_test -## gcc radio_test.c radio.c hrf69.c spis_rpi.c gpio_rpi.c -## mv a.out radio_test -## chmod u+x radio_test +gcc radio_test.c radio.c hrfm69.c spis.c gpio_rpi.c delay_posix.c +mv a.out radio_test +chmod u+x radio_test # build spi .so library on Raspberry Pi diff --git a/src/energenie/drv/hrfm69_test.c b/src/energenie/drv/hrfm69_test.c index 66c6569..32ddbcd 100644 --- a/src/energenie/drv/hrfm69_test.c +++ b/src/energenie/drv/hrfm69_test.c @@ -144,7 +144,7 @@ //{HRF_ADDR_PAYLOADLEN, 2}, // Payload Length //{HRF_ADDR_FIFOTHRESH, 1} // Start tx when this is exceeded }; -#define CONFIG_OOK_LEN (sizeof(config_OOK)/sizeof(HRF_CONFIG_REC)) +#define CONFIG_OOK_COUNT (sizeof(config_OOK)/sizeof(HRF_CONFIG_REC)) // Send a test tick using OOK modulation @@ -158,7 +158,7 @@ int i; TRACE_OUTS("config\n"); - for (i=0; i