fix firmware for repeated scans in different modes