+ error correction in On-Off
+ fix wrong counting of generated packets