summaryrefslogtreecommitdiffstats
path: root/rf_test
diff options
context:
space:
mode:
Diffstat (limited to 'rf_test')
-rw-r--r--rf_test/rfm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rf_test/rfm.c b/rf_test/rfm.c
index 5f855fc..d2dcaa7 100644
--- a/rf_test/rfm.c
+++ b/rf_test/rfm.c
@@ -109,16 +109,16 @@ void rfm_sendto(uint8_t addr, uint8_t *data, uint8_t n)
uint8_t rfm_recvfrom(uint8_t addr, uint8_t *buf, uint8_t n)
{
- uint8_t i, bytes;
+ uint8_t i, buflen;
SS_PORT |= (1 << SS_PIN);
for (i = 0; i < n && ((read_reg(0x28) >> 6) & 1); i++) {
buf[i] = read_reg(0x00);
- bytes++;
+ buflen++;
}
SS_PORT &= ~(1 << SS_PIN);
- return bytes;
+ return buflen;
}