summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2015-03-03 23:09:03 (GMT)
committerChristian Pointner <equinox@mur.at>2015-03-03 23:09:03 (GMT)
commit030de9f979a77d6a67d1f823d8ba4c01217e5e0d (patch)
tree65e7801e87d91dc5c844f4493ae235782fe1250a
parent95c1c13f1a5c29ed8b5d7922a435fd5c56816b3d (diff)
sizeof vs hardcoded length
-rw-r--r--software/hhd70dongle/hhd70dongle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c
index ad73195..30153be 100644
--- a/software/hhd70dongle/hhd70dongle.c
+++ b/software/hhd70dongle/hhd70dongle.c
@@ -234,7 +234,7 @@ static void handle_cmd(uint8_t cmd)
}
}
-uint8_t tempdata[255];
+uint8_t tempdata[256];
static void do_receive_task(uint8_t first)
{
@@ -264,7 +264,7 @@ static void do_receive_task(uint8_t first)
}
}
- uint8_t r = cc1101_read_rxfifo(tempdata, 255);
+ uint8_t r = cc1101_read_rxfifo(tempdata, sizeof(tempdata));
if(r) {
uint8_t i;
for(i=0; i<r; ++i) {