Detects engine knock and changes timing accordingly