Fix issue on ff autocalib
Due to the way the Stats reset was triggered some time the reset happened 2 times consecutively, so during the calibration the result was wrong keeping the same value from last acquisition.
It was also fixed the snippets to call gen-pi-table for FF tables.