fix setmode to flash/fdfr