Skip to content

Commit

Permalink
[sensor_tools] remove leftover code in hist (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
XLAR-8 authored and rroohhh committed Apr 17, 2019
1 parent 1d7e001 commit cdec7d2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions software/sensor_tools/hist/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,6 @@ int main(int argc, char *argv[])
(long unsigned)map_base, (long unsigned)map_size,
(long unsigned)map_addr);

void *line = calloc(64*128, sizeof(uint16_t));
if (line == (void *)-1) {
fprintf(stderr,
"error allocating memory\n%s\n",
strerror(errno));
exit(3);
}

for (int i=0; i<4; i++) {
if (buf_base[i] == -1)
buf_base[i] = get_fil_reg(FIL_REG_BUF0 + 2*i);
Expand Down

0 comments on commit cdec7d2

Please sign in to comment.