Browse Source

first lut function, suite

master
tth 3 years ago
parent
commit
4c984ebdcc
3 changed files with 5 additions and 3 deletions
  1. +1
    -0
      .gitignore
  2. +3
    -2
      core/lut1024f.c
  3. +1
    -1
      serial/essai.sh

+ 1
- 0
.gitignore View File

@ -3,6 +3,7 @@ a.out
fake-values
essai
serial/t
core/t
doc/*.toc
doc/*.log


+ 3
- 2
core/lut1024f.c View File

@ -20,11 +20,11 @@ for(count=0; count<1024; count++) {
foo = fscanf(fp, "%f", &where->vals[foo]);
if (1 != foo) {
fprintf(stderr, "%s: bad read %d\n", __func__, foo);
return -2;
return -4;
}
}
return -1;
return 0;
}
/* ---------------------------------------------------------------- */
@ -60,6 +60,7 @@ if (foo) {
exit(5);
}
foo = slurp_lut1024f(fplut, where, 0);
fclose(fplut);


+ 1
- 1
serial/essai.sh View File

@ -10,7 +10,7 @@ NB_READ=15000
./t -v -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
gnuplot << __EOC__
set term png size 1600,512
set term png size 3200,512
set output "${IMAGE}"
set grid
set title "Dans le Double Dragon 2"


Loading…
Cancel
Save