diff options
author | Christian Pointner <equinox@mur.at> | 2015-03-04 00:09:03 +0100 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2015-03-04 00:09:03 +0100 |
commit | 030de9f979a77d6a67d1f823d8ba4c01217e5e0d (patch) | |
tree | 65e7801e87d91dc5c844f4493ae235782fe1250a | |
parent | print not implemented warnings for send and beacon task (diff) |
sizeof vs hardcoded length
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 4 |
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) { |